Skip to content

Commit

Permalink
finalize staging nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Dec 20, 2023
1 parent f825e32 commit 99eb92f
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 3 deletions.
15 changes: 15 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,24 @@ buildscript {
}
}

plugins {
id 'io.github.gradle-nexus.publish-plugin' version "$publish_plugin_version"
}

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
username = findProperty('OSSRH_USERNAME') ?: System.getenv('OSSRH_USERNAME') ?: ""
password = findProperty('OSSRH_PASSWORD') ?: System.getenv('OSSRH_PASSWORD') ?: ""
}
}
}

wrapper {
distributionType = Wrapper.DistributionType.ALL
}

allprojects {

repositories {
Expand Down
2 changes: 1 addition & 1 deletion android/release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

../gradlew publishAllPublicationsToStagingRepository --info
../gradlew publishToSonatype


16 changes: 16 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// Dokka
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
// Publish Plugin
classpath "io.github.gradle-nexus:publish-plugin:$publish_plugin_version"
}
}

plugins {
id 'io.github.gradle-nexus.publish-plugin' version "$publish_plugin_version"
}

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
username = findProperty('OSSRH_USERNAME') ?: System.getenv('OSSRH_USERNAME') ?: ""
password = findProperty('OSSRH_PASSWORD') ?: System.getenv('OSSRH_PASSWORD') ?: ""
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

../gradlew publishAllPublicationsToStagingRepository --info
../gradlew publishToSonatype


2 changes: 2 additions & 0 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ ext {
mockito_version = "4.7.0"
mockk_version = "1.12.2"

// Publish Plugin
publish_plugin_version = '2.0.0-rc-1'
}
14 changes: 14 additions & 0 deletions plugins/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ buildscript {
}
}

plugins {
id 'io.github.gradle-nexus.publish-plugin' version "$publish_plugin_version"
}

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
username = findProperty('OSSRH_USERNAME') ?: System.getenv('OSSRH_USERNAME') ?: ""
password = findProperty('OSSRH_PASSWORD') ?: System.getenv('OSSRH_PASSWORD') ?: ""
}
}
}

wrapper {
distributionType = Wrapper.DistributionType.ALL
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

../gradlew publishAllPublicationsToStagingRepository --info
../gradlew publishToSonatype


0 comments on commit 99eb92f

Please sign in to comment.