File tree Expand file tree Collapse file tree 7 files changed +48
-12
lines changed Expand file tree Collapse file tree 7 files changed +48
-12
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,13 @@ jobs:
2828 property : ' VERSION_NAME'
2929
3030 - name : Publish Plugin
31- # if: ${{ contains(steps.read_version.outputs.value, 'SNAPSHOT') == true }}
3231 run : ./gradlew publish --no-daemon --stacktrace --no-build-cache
3332 env :
33+ ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
3434 ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
35+ ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD : ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
3536 ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
37+ ORG_GRADLE_PROJECT_SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
3638 ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_KEY }}
3739
3840# - name: Publish Gradle Plugin
Original file line number Diff line number Diff line change @@ -32,16 +32,6 @@ subprojects {
3232 group = GROUP
3333 version = VERSION_NAME
3434
35- extensions.findByType< com.vanniktech.maven.publish.MavenPublishBaseExtension > ()?.apply {
36- publishToMavenCentral()
37- val releaseSigningEnabled =
38- project.properties[" RELEASE_SIGNING_ENABLED" ]?.toString()?.equals(" false" , ignoreCase = true ) != true
39- if (releaseSigningEnabled) signAllPublications()
40- @Suppress(" UnstableApiUsage" )
41- pomFromGradleProperties()
42- configureBasedOnAppliedPlugins()
43- }
44-
4535 afterEvaluate {
4636 tasks.getByName<Test >(" test" ) {
4737 useJUnitPlatform()
Original file line number Diff line number Diff line change 11[versions ]
22kotlin = " 2.0.20"
3- mavenPublish = " 0.29 .0"
3+ mavenPublish = " 0.30 .0"
44
55[libraries ]
66aws = { module = " software.amazon.awssdk:s3" , version = " 2.23.8" }
Original file line number Diff line number Diff line change @@ -57,3 +57,14 @@ dependencies {
5757
5858 testImplementation(kotlin(" test" ))
5959}
60+
61+ mavenPublishing {
62+ publishToMavenCentral()
63+ val releaseSigningEnabled =
64+ project.properties[" RELEASE_SIGNING_ENABLED" ]?.toString()?.equals(" false" , ignoreCase = true ) != true
65+ if (releaseSigningEnabled) signAllPublications()
66+ @Suppress(" UnstableApiUsage" )
67+ pomFromGradleProperties()
68+ @Suppress(" UnstableApiUsage" )
69+ configureBasedOnAppliedPlugins()
70+ }
Original file line number Diff line number Diff line change @@ -56,4 +56,15 @@ dependencies {
5656 api(project(" :kmmbridge" ))
5757
5858 testImplementation(kotlin(" test" ))
59+ }
60+
61+ mavenPublishing {
62+ publishToMavenCentral()
63+ val releaseSigningEnabled =
64+ project.properties[" RELEASE_SIGNING_ENABLED" ]?.toString()?.equals(" false" , ignoreCase = true ) != true
65+ if (releaseSigningEnabled) signAllPublications()
66+ @Suppress(" UnstableApiUsage" )
67+ pomFromGradleProperties()
68+ @Suppress(" UnstableApiUsage" )
69+ configureBasedOnAppliedPlugins()
5970}
Original file line number Diff line number Diff line change @@ -55,4 +55,15 @@ dependencies {
5555 api(project(" :kmmbridge" ))
5656
5757 testImplementation(kotlin(" test" ))
58+ }
59+
60+ mavenPublishing {
61+ publishToMavenCentral()
62+ val releaseSigningEnabled =
63+ project.properties[" RELEASE_SIGNING_ENABLED" ]?.toString()?.equals(" false" , ignoreCase = true ) != true
64+ if (releaseSigningEnabled) signAllPublications()
65+ @Suppress(" UnstableApiUsage" )
66+ pomFromGradleProperties()
67+ @Suppress(" UnstableApiUsage" )
68+ configureBasedOnAppliedPlugins()
5869}
Original file line number Diff line number Diff line change @@ -59,4 +59,15 @@ dependencies {
5959 testImplementation(kotlin(" test" ))
6060 testImplementation(gradleTestKit())
6161 testImplementation(" commons-io:commons-io:2.18.0" )
62+ }
63+
64+ mavenPublishing {
65+ publishToMavenCentral()
66+ val releaseSigningEnabled =
67+ project.properties[" RELEASE_SIGNING_ENABLED" ]?.toString()?.equals(" false" , ignoreCase = true ) != true
68+ if (releaseSigningEnabled) signAllPublications()
69+ @Suppress(" UnstableApiUsage" )
70+ pomFromGradleProperties()
71+ @Suppress(" UnstableApiUsage" )
72+ configureBasedOnAppliedPlugins()
6273}
You can’t perform that action at this time.
0 commit comments