Skip to content

Commit

Permalink
revert to publishing in each module
Browse files Browse the repository at this point in the history
  • Loading branch information
kpgalligan committed Nov 27, 2024
1 parent 373475f commit 75f81d5
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ jobs:
property: 'VERSION_NAME'

- name: Publish Plugin
# if: ${{ contains(steps.read_version.outputs.value, 'SNAPSHOT') == true }}
run: ./gradlew publish --no-daemon --stacktrace --no-build-cache
env:
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}

# - name: Publish Gradle Plugin
Expand Down
10 changes: 0 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ subprojects {
group = GROUP
version = VERSION_NAME

extensions.findByType<com.vanniktech.maven.publish.MavenPublishBaseExtension>()?.apply {
publishToMavenCentral()
val releaseSigningEnabled =
project.properties["RELEASE_SIGNING_ENABLED"]?.toString()?.equals("false", ignoreCase = true) != true
if (releaseSigningEnabled) signAllPublications()
@Suppress("UnstableApiUsage")
pomFromGradleProperties()
configureBasedOnAppliedPlugins()
}

afterEvaluate {
tasks.getByName<Test>("test") {
useJUnitPlatform()
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "2.0.20"
mavenPublish = "0.29.0"
mavenPublish = "0.30.0"

[libraries]
aws = { module = "software.amazon.awssdk:s3", version = "2.23.8" }
Expand Down
11 changes: 11 additions & 0 deletions kmmbridge-github/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,14 @@ dependencies {

testImplementation(kotlin("test"))
}

mavenPublishing {
publishToMavenCentral()
val releaseSigningEnabled =
project.properties["RELEASE_SIGNING_ENABLED"]?.toString()?.equals("false", ignoreCase = true) != true
if (releaseSigningEnabled) signAllPublications()
@Suppress("UnstableApiUsage")
pomFromGradleProperties()
@Suppress("UnstableApiUsage")
configureBasedOnAppliedPlugins()
}
11 changes: 11 additions & 0 deletions kmmbridge-gitlab/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,15 @@ dependencies {
api(project(":kmmbridge"))

testImplementation(kotlin("test"))
}

mavenPublishing {
publishToMavenCentral()
val releaseSigningEnabled =
project.properties["RELEASE_SIGNING_ENABLED"]?.toString()?.equals("false", ignoreCase = true) != true
if (releaseSigningEnabled) signAllPublications()
@Suppress("UnstableApiUsage")
pomFromGradleProperties()
@Suppress("UnstableApiUsage")
configureBasedOnAppliedPlugins()
}
11 changes: 11 additions & 0 deletions kmmbridge-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,15 @@ dependencies {
api(project(":kmmbridge"))

testImplementation(kotlin("test"))
}

mavenPublishing {
publishToMavenCentral()
val releaseSigningEnabled =
project.properties["RELEASE_SIGNING_ENABLED"]?.toString()?.equals("false", ignoreCase = true) != true
if (releaseSigningEnabled) signAllPublications()
@Suppress("UnstableApiUsage")
pomFromGradleProperties()
@Suppress("UnstableApiUsage")
configureBasedOnAppliedPlugins()
}
11 changes: 11 additions & 0 deletions kmmbridge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@ dependencies {
testImplementation(kotlin("test"))
testImplementation(gradleTestKit())
testImplementation("commons-io:commons-io:2.18.0")
}

mavenPublishing {
publishToMavenCentral()
val releaseSigningEnabled =
project.properties["RELEASE_SIGNING_ENABLED"]?.toString()?.equals("false", ignoreCase = true) != true
if (releaseSigningEnabled) signAllPublications()
@Suppress("UnstableApiUsage")
pomFromGradleProperties()
@Suppress("UnstableApiUsage")
configureBasedOnAppliedPlugins()
}

0 comments on commit 75f81d5

Please sign in to comment.