Skip to content

Commit

Permalink
build: add sources and javadoc jars, add pom, add signing
Browse files Browse the repository at this point in the history
  • Loading branch information
yusshu committed Feb 15, 2024
1 parent a780596 commit 6ae1bfa
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
17 changes: 11 additions & 6 deletions buildSrc/src/main/kotlin/hephaestus.common-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
}

tasks {
test {
useJUnitPlatform()
}
}

java {
withSourcesJar()
withJavadocJar()
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

tasks {
javadoc {
isFailOnError = true
}
test {
useJUnitPlatform()
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("hephaestus.common-conventions")
`maven-publish`
signing
}

val repositoryName: String by project
Expand All @@ -20,6 +21,34 @@ publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set("${project.group}:${project.name}")
description.set(project.description)
url.set("https://github.com/unnamed/hephaestus-engine")
packaging = "jar"
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/license/mit/")
}
}
developers {
developer {
id.set("yusshu")
name.set("Andre Roldan")
email.set("yusshu@unnamed.team")
}
}
scm {
connection.set("scm:git:git://github.com/unnamed/hephaestus-engine.git")
developerConnection.set("scm:git:ssh://github.com:unnamed/hephaestus-engine.git")
url.set("https://github.com/unnamed/hephaestus-engine")
}
}
}
}
}

signing {
sign(publishing.publications["maven"])
}

0 comments on commit 6ae1bfa

Please sign in to comment.