Skip to content

Commit

Permalink
build: cleanup build script
Browse files Browse the repository at this point in the history
  • Loading branch information
darksaid98 committed Dec 21, 2024
1 parent cd0380d commit d2bfe67
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 90 deletions.
85 changes: 0 additions & 85 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import java.time.Instant

plugins {
// `maven-publish`
// signing
// alias(libs.plugins.publish.on.central)
alias(libs.plugins.maven.deployer)
// alias(libs.plugins.jreleaser)
}

applyCustomVersion()
Expand Down Expand Up @@ -97,87 +93,6 @@ deployer {
}
}

//publishing {
// publications {
// create<MavenPublication>("maven") {
// groupId = "io.github.milkdrinkers"
// artifactId = "javasemver"
// version = "${rootProject.version}"
//
// from(components["java"])
//
// pom {
// name.set(rootProject.name)
// description.set(rootProject.description.orEmpty())
// url.set("https://github.com/milkdrinkers/java-semver")
// inceptionYear.set("2024")
//
// licenses {
// license {
// name.set("GNU General Public License Version 3")
// url.set("https://www.gnu.org/licenses/gpl-3.0.en.html#license-text")
// }
// }
//
// developers {
// developer {
// id.set("darksaid98")
// name.set("darksaid98")
// email.set("darksaid9889@gmail.com")
// url.set("https://github.com/darksaid98")
// organization.set("Milkdrinkers")
// organizationUrl.set("https://github.com/milkdrinkers")
// }
// }
//
// scm {
// connection.set("scm:git:git://github.com/milkdrinkers/java-semver.git")
// developerConnection.set("scm:git:ssh://github.com:milkdrinkers/java-semver.git")
// url.set("https://github.com/milkdrinkers/java-semver")
// }
// }
// }
// }
//
// repositories {
// maven {
// url = uri(layout.buildDirectory.dir("staging-deploy"))
// }
// }
//}



//jreleaser {
// signing {
// active.set(Active.ALWAYS)
// armored.set(true)
// secretKey.set(rootProject.findProperty("signing.key")?.toString() ?: System.getenv("GPG_KEY"))
// passphrase.set(rootProject.findProperty("signing.password")?.toString() ?: System.getenv("GPG_PASSWORD"))
// }
// deploy {
// maven {
// mavenCentral {
// create("sonatype") {
// active.set(Active.ALWAYS)
// username.set(rootProject.findProperty("maven.username")?.toString() ?: System.getenv("MAVEN_USERNAME"))
// password.set(rootProject.findProperty("maven.password")?.toString() ?: System.getenv("MAVEN_PASSWORD"))
// url.set("https://central.sonatype.com/api/v1/publisher")
// stagingRepository("target/staging-deploy")
// applyMavenCentralRules.set(true)
// }
// }
// }
// }
//}

//signing {
// val signingKey = project.findProperty("signing.key")?.toString() ?: System.getenv("GPG_KEY")
// val signingPassword = project.findProperty("signing.password")?.toString() ?: System.getenv("GPG_PASSWORD")
//
// useInMemoryPgpKeys(signingKey, signingPassword)
//}

fun applyCustomVersion() {
// Apply custom version arg or append snapshot version
val ver = properties["altVer"]?.toString() ?: "${rootProject.version}-SNAPSHOT-${Instant.now().epochSecond}"
Expand Down
5 changes: 0 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[libraries]
annotations = "org.jetbrains:annotations:26.0.1"
gson = "com.google.code.gson:gson:2.11.0"
junit-bom = "org.junit:junit-bom:5.11.3"
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter" }
junit-platform = { module = "org.junit.platform:junit-platform-launcher" }
Expand All @@ -11,8 +10,4 @@ junit-platform = { module = "org.junit.platform:junit-platform-launcher" }
junit = ["junit-jupiter", "junit-platform"]

[plugins]
shadow = "com.gradleup.shadow:8.3.5"
publish-on-central = "org.danilopianini.publish-on-central:7.0.4"
maven-deployer = "io.deepmedia.tools.deployer:0.16.0"
jreleaser = "org.jreleaser:1.15.0"
gradle-publish = "com.vanniktech.maven.publish:0.30.0"

0 comments on commit d2bfe67

Please sign in to comment.