Skip to content

Commit

Permalink
Revert to how it should work
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Simonides committed Apr 25, 2024
1 parent d9b9db8 commit 9170617
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions convention-plugins/src/main/kotlin/root.publication.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@ plugins {

allprojects {
group = "community.flock.aigentic"
version = "0.0.1"
version = "0.0.2-SNAPSHOT"
}

nexusPublishing {
// repositoryDescription.set("community.flock.aigentic:0.0.1")
useStaging.set(false)

// val isSnapshot = version.toString().endsWith("SNAPSHOT")
// val url = if (isSnapshot) "https://s01.oss.sonatype.org/content/repositories/snapshots/" else "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"

// useStaging.set(isSnapshot)
// Configure maven central repository
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
// nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"))
// snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
// nexusUrl.set(uri(url))
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"))
// snapshotRepositoryUrl.set(uri(url))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username.set(System.getenv("SONATYPE_USERNAME"))
password.set(System.getenv("SONATYPE_PASSWORD"))
}
Expand Down

0 comments on commit 9170617

Please sign in to comment.