File tree 13 files changed +76
-80
lines changed
13 files changed +76
-80
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ jobs:
32
32
- name : Grant execute permission for gradlew
33
33
run : chmod +x gradlew
34
34
- name : Build with Gradle
35
- run : ./gradlew clean build
36
- - name : Publish Packages to Bintray
37
- run : ./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" - Pversion="${githubRef#refs/tags/}" -PbuildNumber="${buildNumber}" bintrayUpload
35
+ run : ./gradlew clean build -x test
36
+ - name : Publish Packages to Sonotype
37
+ run : ./gradlew -Pversion="${githubRef#refs/tags/}" -PbuildNumber="${buildNumber}" sign publishMavenPublicationToSonatypeRepository
38
38
env :
39
- bintrayUser : ${{ secrets.bintrayUser }}
40
- bintrayKey : ${{ secrets.bintrayKey }}
41
- sonatypeUsername : ${{ secrets.sonatypeUsername }}
42
- sonatypePassword : ${{ secrets.sonatypePassword }}
43
39
githubRef : ${{ github.ref }}
44
- buildNumber : ${{ github.run_number }}
40
+ buildNumber : ${{ github.run_number }}
41
+ ORG_GRADLE_PROJECT_signingKey : ${{secrets.signingKey}}
42
+ ORG_GRADLE_PROJECT_signingPassword : ${{secrets.signingPassword}}
43
+ ORG_GRADLE_PROJECT_sonatypeUsername : ${{secrets.sonatypeUsername}}
44
+ ORG_GRADLE_PROJECT_sonatypePassword : ${{secrets.sonatypePassword}}
Original file line number Diff line number Diff line change 17
17
plugins {
18
18
id ' com.github.sherter.google-java-format' version ' 0.9' apply false
19
19
id ' com.jfrog.artifactory' version ' 4.21.0' apply false
20
- id ' com.jfrog.bintray' version ' 1.8.5' apply false
21
20
id ' me.champeau.jmh' version ' 0.6.4' apply false
22
21
id ' io.spring.dependency-management' version ' 1.0.11.RELEASE' apply false
23
22
id ' io.morethan.jmhreport' version ' 0.9.0' apply false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ subprojects {
2
+
3
+ plugins. withType(JavaLibraryPlugin ) {
4
+ plugins. withType(MavenPublishPlugin ) {
5
+ publishing {
6
+ repositories {
7
+ maven {
8
+ name = " GitHubPackages"
9
+ url = uri(" https://maven.pkg.github.com/rsocket/rsocket-java" )
10
+ credentials {
11
+ username = project. findProperty(" gpr.user" ) ?: System . getenv(" USERNAME" )
12
+ password = project. findProperty(" gpr.key" ) ?: System . getenv(" TOKEN" )
13
+ }
14
+ }
15
+ }
16
+ }
17
+
18
+ tasks. named(" publish" ). configure {
19
+ onlyIf { System . getenv(' SKIP_RELEASE' ) != " true" }
20
+ }
21
+ }
22
+ }
23
+ }
Original file line number Diff line number Diff line change 1
1
apply from : " ${ rootDir} /gradle/artifactory.gradle"
2
- apply from : " ${ rootDir} /gradle/bintray.gradle"
2
+ apply from : " ${ rootDir} /gradle/github-pkg.gradle"
3
+ apply from : " ${ rootDir} /gradle/sonotype.gradle"
3
4
4
5
subprojects {
5
6
plugins. withType(MavenPublishPlugin ) {
Original file line number Diff line number Diff line change
1
+ subprojects {
2
+ if (project. hasProperty(' sonatypeUsername' ) && project. hasProperty(' sonatypePassword' )) {
3
+ plugins. withType(JavaLibraryPlugin ) {
4
+ plugins. withType(MavenPublishPlugin ) {
5
+ plugins. withType(SigningPlugin ) {
6
+
7
+ signing {
8
+ // requiring signature if there is a publish task that is not to MavenLocal
9
+ required { gradle. taskGraph. allTasks. any { it. name. toLowerCase(). contains(" publish" ) && ! it. name. contains(" MavenLocal" ) } }
10
+ def signingKey = project. findProperty(" signingKey" )
11
+ def signingPassword = project. findProperty(" signingPassword" )
12
+
13
+ useInMemoryPgpKeys(signingKey, signingPassword)
14
+
15
+ afterEvaluate {
16
+ sign publishing. publications. maven
17
+ }
18
+ }
19
+
20
+ publishing {
21
+ repositories {
22
+ maven {
23
+ name = " sonatype"
24
+ url = " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
25
+ credentials {
26
+ username project. findProperty(" sonatypeUsername" )
27
+ password project. findProperty(" sonatypePassword" )
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
Original file line number Diff line number Diff line change 16
16
plugins {
17
17
id ' java-platform'
18
18
id ' maven-publish'
19
+ id ' signing'
19
20
id ' com.jfrog.artifactory'
20
- id ' com.jfrog.bintray'
21
21
}
22
22
23
23
description = ' RSocket Java Bill of materials.'
Original file line number Diff line number Diff line change 17
17
plugins {
18
18
id ' java-library'
19
19
id ' maven-publish'
20
+ id ' signing'
20
21
id ' com.jfrog.artifactory'
21
- id ' com.jfrog.bintray'
22
22
id ' io.morethan.jmhreport'
23
23
id ' me.champeau.jmh'
24
24
id ' io.github.reyerizo.gradle.jcstress'
Original file line number Diff line number Diff line change 17
17
plugins {
18
18
id ' java-library'
19
19
id ' maven-publish'
20
+ id ' signing'
20
21
id ' com.jfrog.artifactory'
21
- id ' com.jfrog.bintray'
22
22
}
23
23
24
24
dependencies {
Original file line number Diff line number Diff line change 17
17
plugins {
18
18
id ' java-library'
19
19
id ' maven-publish'
20
+ id ' signing'
20
21
id ' com.jfrog.artifactory'
21
- id ' com.jfrog.bintray'
22
22
}
23
23
24
24
dependencies {
Original file line number Diff line number Diff line change 17
17
plugins {
18
18
id ' java-library'
19
19
id ' maven-publish'
20
+ id ' signing'
20
21
id ' com.jfrog.artifactory'
21
- id ' com.jfrog.bintray'
22
22
}
23
23
24
24
dependencies {
Original file line number Diff line number Diff line change 17
17
plugins {
18
18
id ' java-library'
19
19
id ' maven-publish'
20
+ id ' signing'
20
21
id ' com.jfrog.artifactory'
21
- id ' com.jfrog.bintray'
22
22
}
23
23
24
24
dependencies {
Original file line number Diff line number Diff line change 17
17
plugins {
18
18
id ' java-library'
19
19
id ' maven-publish'
20
+ id ' signing'
20
21
id ' com.jfrog.artifactory'
21
- id ' com.jfrog.bintray'
22
22
id " com.google.osdetector" version " 1.4.0"
23
23
}
24
24
You can’t perform that action at this time.
0 commit comments