File tree Expand file tree Collapse file tree 2 files changed +65
-4
lines changed Expand file tree Collapse file tree 2 files changed +65
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
allprojects {
8
8
ext {
9
- fjVersion = " 4.0-SNAPSHOT"
9
+ isSnapshot = true
10
+ fjBaseVersion = " 4.0"
11
+
12
+ snapshotAppendix = " -SNAPSHOT"
13
+ fjVersion = fjBaseVersion + (isSnapshot ? snapshotAppendix : " " )
14
+
15
+ projectTitle = " Functional Java"
10
16
projectName = " functionaljava"
11
- }
17
+ pomProjectName = projectTitle
18
+ pomOrganisation = projectTitle
19
+ projectDescription = " Functional Java is an open source library that supports closures for the Java programming language"
20
+ projectUrl = " http://functionaljava.org/"
21
+ scmUrl = " git://github.com/functionaljava/functionaljava.git"
22
+ scmGitFile = " scm:git@github.com:functionaljava/functionaljava.git"
23
+
24
+ sonatypeBaseUrl = " https://oss.sonatype.org"
25
+ sonatypeSnapshotUrl = " $sonatypeBaseUrl /content/repositories/snapshots/"
26
+ sonatypeRepositoryUrl = " $sonatypeBaseUrl /content/groups/public"
27
+ sonatypeReleaseUrl = " $sonatypeBaseUrl /service/local/staging/deploy/maven2/"
28
+ sonatypeUploadUrl = isSnapshot ? sonatypeSnapshotUrl : sonatypeReleaseUrl
29
+ primaryEmail = " functionaljava@googlegroups.com"
30
+ }
12
31
version = fjVersion
13
32
group = " org.functionaljava"
14
33
}
Original file line number Diff line number Diff line change 1
1
2
2
apply plugin : ' java'
3
3
apply plugin : ' maven'
4
+ // apply plugin: 'signing'
4
5
5
6
defaultTasks ' build'
6
7
7
-
8
8
jar {
9
9
baseName project. projectName
10
10
version project. fjVersion
@@ -19,6 +19,48 @@ repositories {
19
19
20
20
dependencies {
21
21
compile ' org.slf4j:slf4j-api:1.7.5'
22
-
23
22
testCompile " junit:junit:4.11"
24
23
}
24
+
25
+ uploadArchives {
26
+ repositories {
27
+ mavenDeployer {
28
+ // used for signing the artifacts, no need to sign snapshot, so leave out for now
29
+ // beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
30
+
31
+ repository(url : sonatypeUploadUrl) {
32
+ authentication(userName : sonatypeUsername, password : sonatypePassword)
33
+ }
34
+ pom {
35
+ groupId = project. group
36
+ project {
37
+ name pomProjectName
38
+ packaging ' jar'
39
+ description projectDescription
40
+ url projectUrl
41
+ organization {
42
+ name pomOrganisation
43
+ url projectUrl
44
+ }
45
+ scm {
46
+ url scmUrl
47
+ // connection scmGitFile
48
+ // developerConnection scmGitFile
49
+ }
50
+ licenses {
51
+ license {
52
+ name " The BSD3 License"
53
+ url " https://github.com/functionaljava/functionaljava/blob/master/etc/LICENCE"
54
+ distribution ' repo'
55
+ }
56
+ }
57
+ developers {
58
+ developer {
59
+ email primaryEmail
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
You can’t perform that action at this time.
0 commit comments