Skip to content

Commit

Permalink
Jreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
pacu committed Oct 3, 2024
1 parent 512bd0e commit 1a49edf
Showing 1 changed file with 22 additions and 42 deletions.
64 changes: 22 additions & 42 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -81,34 +81,34 @@ tasks.named<Test>("test") {
useJUnitPlatform()
}

//jreleaser {
// signing {
// active.set(Active.ALWAYS)
// armored.set(true)
// }
// deploy {
// maven {
// mavenCentral {
//
// active.set(Active.ALWAYS)
//// url.set("https://central.sonatype.com/api/v1/publisher")
// stagingRepository.set("target/staging-deploy")
//
//// sonatype {
//// active.set(Active)
//// url.set("https://central.sonatype.com/api/v1/publisher")
//// stagingRepository.set("target/staging-deploy")
//// }
// }
// }
// }
//}

val publicationVariant = "release"
val myVersion = project.property("LIBRARY_VERSION").toString()
val myArtifactId = "zip321"
val isSnapshot = project.property("IS_SNAPSHOT").toString().toBoolean()


jreleaser {
gitRootSearch.set(true)
version = myVersion

signing {
active.set(Active.ALWAYS)
armored.set(true)
}
deploy {
maven {
mavenCentral {
active.set(Active.ALWAYS)

// url.set("https://central.sonatype.com/api/v1/publisher")
// stagingRepository.set("target/staging-deploy")

}
}
}
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down Expand Up @@ -155,26 +155,6 @@ publishing {
url = layout.buildDirectory.dir("staging-deploy").get().asFile.toURI()
}
}
// repositories {
// val mavenUrl = if (isSnapshot) {
// project.property("ZECDEV_MAVEN_PUBLISH_SNAPSHOT_URL").toString()
// } else {
// project.property("ZECDEV_MAVEN_PUBLISH_RELEASE_URL").toString()
// }
// val mavenPublishUsername = project.property("ZECDEV_MAVEN_PUBLISH_USERNAME").toString()
// val mavenPublishPassword = project.property("ZECDEV_MAVEN_PUBLISH_PASSWORD").toString()
//
// mavenLocal {
// name = "MavenLocal"
// }
// maven(mavenUrl) {
// name = "MavenCentral"
// credentials {
// username = mavenPublishUsername
// password = mavenPublishPassword
// }
// }
// }
}


Expand Down

0 comments on commit 1a49edf

Please sign in to comment.