diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 601021d..ed55d1e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,10 +8,10 @@ on: env: SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }} - SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }} SIGNING_KEYID: ${{ secrets.SIGNING_KEYID }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} SIGNING_SECRET_KEY_RING_CONTENT: ${{ secrets.SIGNING_SECRET_KEY_RING_CONTENT }} + SIGNING_SECRET_PASSPHRASE: ${{ secrets.SIGNING_SECRET_PASSPHRASE }} jobs: publish: @@ -30,7 +30,7 @@ jobs: - name: Prepare environment run: | echo "$SIGNING_SECRET_KEY_RING_CONTENT" | base64 -d > publish_key.gpg - gpg --batch --yes --decrypt --passphrase="$SECRET_PASSPHRASE" --output secret.gpg publish_key.gpg + gpg --batch --yes --decrypt --passphrase="SIGNING_SECRET_PASSPHRASE" --output secret.gpg publish_key.gpg - name: Grant execute permission for gradlew run: chmod +x ./gradlew diff --git a/build.gradle.kts b/build.gradle.kts index 8a29820..086f2ff 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,4 +2,21 @@ plugins { alias(libs.plugins.android.application) apply false alias(libs.plugins.android.library) apply false alias(libs.plugins.android.kotlin) apply false -} \ No newline at end of file +// alias(libs.plugins.nexus.plugin) +} + +/** + * ./gradlew publishReleasePublicationToSonatypeRepository -Ptoken="token" + * ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository -Ptoken="token" + * */ +//nexusPublishing { +// repositories { +// sonatype { +// group = "com.github.vivchar" /* for filters by description */ +// version = "3.0.3" /* for filters by description */ +// packageGroup = "com.github.vivchar" +// username = "Ud8EE3UN" +// password = findProperty("token") as String? +// } +// } +//} \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 62c4d62..3614137 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -27,6 +27,7 @@ appcompat = "1.7.0" plugin-application = "8.5.1" plugin-library = "8.5.1" plugin-kotlin = "1.9.0" +plugin-nexus = "2.0.0" kotlinVersion = "1.9.24" @@ -58,4 +59,5 @@ glide-transformations = { group = "jp.wasabeef", name = "glide-transformations", [plugins] android-kotlin = { id = "org.jetbrains.kotlin.android", version.ref = "plugin-kotlin" } android-application = { id = "com.android.application", version.ref = "plugin-application" } -android-library = { id = "com.android.library", version.ref = "plugin-library" } \ No newline at end of file +android-library = { id = "com.android.library", version.ref = "plugin-library" } +nexus-plugin = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "plugin-nexus" } \ No newline at end of file diff --git a/rendererrecyclerviewadapter/build.gradle.kts b/rendererrecyclerviewadapter/build.gradle.kts index 7317cf6..f7aeac6 100644 --- a/rendererrecyclerviewadapter/build.gradle.kts +++ b/rendererrecyclerviewadapter/build.gradle.kts @@ -11,8 +11,6 @@ android { defaultConfig { minSdk = libs.versions.minSdkVersion.get().toInt() compileSdk = libs.versions.compileSdkVersion.get().toInt() - version = "3.0.2" -// version = "3.0.2-SNAPSHOT" } buildTypes { @@ -53,6 +51,8 @@ publishing { groupId = "com.github.vivchar" artifactId = "RendererRecyclerViewAdapter" + version = "3.0.3" +// version = "3.0.2-SNAPSHOT" pom { packaging = "aar"