Skip to content

Commit

Permalink
Merge 1.0.x into master
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Dokuka <[email protected]>
Signed-off-by: Oleh Dokuka <[email protected]>
Signed-off-by: Oleh Dokuka <[email protected]>
  • Loading branch information
Oleh Dokuka authored and OlegDokuka committed Jun 9, 2021
2 parents f521a6a + a1996a1 commit 133401e
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 80 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/gradle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build
- name: Publish Packages to Bintray
run: ./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" -Pversion="${githubRef#refs/tags/}" -PbuildNumber="${buildNumber}" bintrayUpload
run: ./gradlew clean build -x test
- name: Publish Packages to Sonotype
run: ./gradlew -Pversion="${githubRef#refs/tags/}" -PbuildNumber="${buildNumber}" sign publishMavenPublicationToSonatypeRepository
env:
bintrayUser: ${{ secrets.bintrayUser }}
bintrayKey: ${{ secrets.bintrayKey }}
sonatypeUsername: ${{ secrets.sonatypeUsername }}
sonatypePassword: ${{ secrets.sonatypePassword }}
githubRef: ${{ github.ref }}
buildNumber: ${{ github.run_number }}
buildNumber: ${{ github.run_number }}
ORG_GRADLE_PROJECT_signingKey: ${{secrets.signingKey}}
ORG_GRADLE_PROJECT_signingPassword: ${{secrets.signingPassword}}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{secrets.sonatypeUsername}}
ORG_GRADLE_PROJECT_sonatypePassword: ${{secrets.sonatypePassword}}
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
plugins {
id 'com.github.sherter.google-java-format' version '0.9' apply false
id 'com.jfrog.artifactory' version '4.21.0' apply false
id 'com.jfrog.bintray' version '1.8.5' apply false
id 'me.champeau.jmh' version '0.6.4' apply false
id 'io.spring.dependency-management' version '1.0.11.RELEASE' apply false
id 'io.morethan.jmhreport' version '0.9.0' apply false
Expand Down
63 changes: 0 additions & 63 deletions gradle/bintray.gradle

This file was deleted.

23 changes: 23 additions & 0 deletions gradle/github-pkg.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
subprojects {

plugins.withType(JavaLibraryPlugin) {
plugins.withType(MavenPublishPlugin) {
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/rsocket/rsocket-java")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
}

tasks.named("publish").configure {
onlyIf { System.getenv('SKIP_RELEASE') != "true" }
}
}
}
}
3 changes: 2 additions & 1 deletion gradle/publications.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apply from: "${rootDir}/gradle/artifactory.gradle"
apply from: "${rootDir}/gradle/bintray.gradle"
apply from: "${rootDir}/gradle/github-pkg.gradle"
apply from: "${rootDir}/gradle/sonotype.gradle"

subprojects {
plugins.withType(MavenPublishPlugin) {
Expand Down
36 changes: 36 additions & 0 deletions gradle/sonotype.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
subprojects {
if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) {
plugins.withType(JavaLibraryPlugin) {
plugins.withType(MavenPublishPlugin) {
plugins.withType(SigningPlugin) {

signing {
//requiring signature if there is a publish task that is not to MavenLocal
required { gradle.taskGraph.allTasks.any { it.name.toLowerCase().contains("publish") && !it.name.contains("MavenLocal") } }
def signingKey = project.findProperty("signingKey")
def signingPassword = project.findProperty("signingPassword")

useInMemoryPgpKeys(signingKey, signingPassword)

afterEvaluate {
sign publishing.publications.maven
}
}

publishing {
repositories {
maven {
name = "sonatype"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username project.findProperty("sonatypeUsername")
password project.findProperty("sonatypePassword")
}
}
}
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion rsocket-bom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
plugins {
id 'java-platform'
id 'maven-publish'
id 'signing'
id 'com.jfrog.artifactory'
id 'com.jfrog.bintray'
}

description = 'RSocket Java Bill of materials.'
Expand Down
2 changes: 1 addition & 1 deletion rsocket-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'com.jfrog.artifactory'
id 'com.jfrog.bintray'
id 'io.morethan.jmhreport'
id 'me.champeau.jmh'
id 'io.github.reyerizo.gradle.jcstress'
Expand Down
2 changes: 1 addition & 1 deletion rsocket-load-balancer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'com.jfrog.artifactory'
id 'com.jfrog.bintray'
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion rsocket-micrometer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'com.jfrog.artifactory'
id 'com.jfrog.bintray'
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion rsocket-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'com.jfrog.artifactory'
id 'com.jfrog.bintray'
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion rsocket-transport-local/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'com.jfrog.artifactory'
id 'com.jfrog.bintray'
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion rsocket-transport-netty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'com.jfrog.artifactory'
id 'com.jfrog.bintray'
id "com.google.osdetector" version "1.4.0"
}

Expand Down

0 comments on commit 133401e

Please sign in to comment.