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 66
77allprojects {
88 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"
1016 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+ }
1231 version = fjVersion
1332 group = " org.functionaljava"
1433}
Original file line number Diff line number Diff line change 11
22apply plugin : ' java'
33apply plugin : ' maven'
4+ // apply plugin: 'signing'
45
56defaultTasks ' build'
67
7-
88jar {
99 baseName project. projectName
1010 version project. fjVersion
@@ -19,6 +19,48 @@ repositories {
1919
2020dependencies {
2121 compile ' org.slf4j:slf4j-api:1.7.5'
22-
2322 testCompile " junit:junit:4.11"
2423}
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