Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use io.github.gradle-nexus.publish-plugin #1739

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ buildscript {

plugins {
id 'org.jetbrains.kotlinx.binary-compatibility-validator' version "$validator_version"
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 {
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ext {
// Koin Versions
koin_android_version = '3.5.3'
koin_android_version = '3.5.4-beta-1'

// build Tools
android_min_version = 14
Expand Down
2 changes: 1 addition & 1 deletion android/release.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

../gradlew publishAllPublicationsToStagingRepository --max-workers 1
../gradlew publishToSonatype
2 changes: 1 addition & 1 deletion bom/gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ext {
koin_bom_version = '3.5.3'
koin_bom_version = '3.5.4-beta-1'
}
11 changes: 11 additions & 0 deletions compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ buildscript {

plugins {
id 'org.jetbrains.kotlinx.binary-compatibility-validator' version "$validator_version"
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 {
Expand Down
4 changes: 2 additions & 2 deletions compose/gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ext {

// Koin Versions
koin_androidx_compose_version = '3.5.3'
koin_compose_version = "1.1.2"
koin_androidx_compose_version = '3.5.4-beta-1'
koin_compose_version = "1.1.3-beta-1"

// Compose
compose_compiler = "1.5.6"
Expand Down
2 changes: 1 addition & 1 deletion compose/release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

./gradlew publishAllPublicationsToStagingRepository --max-workers 1
./gradlew publishToSonatype

13 changes: 13 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,24 @@ 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 'org.jetbrains.kotlinx.binary-compatibility-validator' version "$validator_version"
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 {
Expand Down
5 changes: 4 additions & 1 deletion core/gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ext {
// Koin Versions
koin_version = '3.5.3'
koin_version = '3.5.4-beta-1'

// Kotlin
kotlin_version = '1.9.21'
Expand All @@ -18,4 +18,7 @@ ext {
junit5_version = "5.9.3"
mockito_version = "4.7.0"
mockk_version = "1.12.2"

// Publish Plugin
publish_plugin_version = '2.0.0-rc-1'
}
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 --max-workers 1
../gradlew publishToSonatype


11 changes: 11 additions & 0 deletions ktor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ buildscript {

plugins {
id 'org.jetbrains.kotlinx.binary-compatibility-validator' version "$validator_version"
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 {
Expand Down
2 changes: 1 addition & 1 deletion ktor/gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ext {
// Koin
koin_ktor_version = '3.5.3'
koin_ktor_version = '3.5.4-beta-1'
// Ktor
ktor_version = '2.3.7'
}
2 changes: 1 addition & 1 deletion ktor/release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

../gradlew publishAllPublicationsToStagingRepository --max-workers 1
../gradlew publishToSonatype


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 --max-workers 1
../gradlew publishToSonatype


12 changes: 12 additions & 0 deletions release_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ cd ./android
./release.sh
cd ..

cd ./compose
./release.sh
cd ..

cd ./ktor
./release.sh
cd ..

cd ./plugins
./release.sh
cd ..

cd ./bom
./release.sh
cd ..
Loading