-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
project(SDK-13): Add signing and publishing to maven central
- Loading branch information
Showing
15 changed files
with
168 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
buildLogic/convention/src/main/kotlin/io/nyris/gradle/SonatypePublisherPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.nyris.gradle | ||
|
||
import io.github.gradlenexus.publishplugin.NexusPublishExtension | ||
import io.github.gradlenexus.publishplugin.NexusPublishPlugin | ||
import java.net.URI | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.configure | ||
import org.gradle.kotlin.dsl.extra | ||
|
||
class SonatypePublisherPlugin : Plugin<Project> { | ||
override fun apply(target: Project) { | ||
with(target) { | ||
pluginManager.apply(NexusPublishPlugin::class.java) | ||
|
||
configure<NexusPublishExtension> { | ||
repositories { | ||
sonatype { | ||
nexusUrl.set(URI.create("https://s01.oss.sonatype.org/service/local/")) | ||
username.set(rootProject.extra["SONATYPE_OSSRH_USERNAME"].toString()) | ||
password.set(rootProject.extra["SONATYPE_OSSRH_PASSWORD"].toString()) | ||
stagingProfileId.set(rootProject.extra["SONATYPE_STAGING_PROFILE_ID"].toString()) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
buildLogic/convention/src/main/kotlin/io/nyris/gradle/utils/Vars.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.nyris.gradle.utils | ||
|
||
object Vars { | ||
val IS_CI = System.getenv().containsKey("CI") | ||
val PUBLIC_API_KEY: String? = System.getenv("PUBLIC_API_KEY") | ||
val NYRIS_BOT_USER: String? = System.getenv("NYRIS_BOT_USER") | ||
val NYRIS_BOT_TAP: String? = System.getenv("NYRIS_BOT_TAP") | ||
val LIB_VERSION_NAME: String? = System.getenv("LIB_VERSION_NAME") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
release.keystore | ||
signing.properties | ||
signing.properties | ||
release-maven.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.