generated from rnentjes/kotlin-server-web-empty
Version. 1.0.0
This commit is contained in:
@@ -8,15 +8,19 @@ plugins {
|
||||
}
|
||||
|
||||
group = "nl.astraeus"
|
||||
version = "1.0.0-SNAPSHOT"
|
||||
version = "1.0.0"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm {}
|
||||
js {}
|
||||
jvm {
|
||||
withJava()
|
||||
}
|
||||
js {
|
||||
browser {}
|
||||
}
|
||||
sourceSets {
|
||||
val commonMain by getting
|
||||
val jvmMain by getting
|
||||
@@ -24,19 +28,33 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
extra["PUBLISH_GROUP_ID"] = group
|
||||
extra["PUBLISH_VERSION"] = version
|
||||
extra["PUBLISH_ARTIFACT_ID"] = name
|
||||
|
||||
// Stub secrets to let the project sync and build without the publication values set up
|
||||
val signingKeyId: String? by project
|
||||
val signingPassword: String? by project
|
||||
val signingSecretKeyRingFile: String? by project
|
||||
|
||||
extra["signing.keyId"] = signingKeyId
|
||||
extra["signing.password"] = signingPassword
|
||||
extra["signing.secretKeyRingFile"] = signingSecretKeyRingFile
|
||||
|
||||
val javadocJar by tasks.registering(Jar::class) {
|
||||
archiveClassifier.set("javadoc")
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
maven {
|
||||
name = "gitea"
|
||||
setUrl("https://gitea.astraeus.nl/api/packages/rnentjes/maven")
|
||||
|
||||
credentials() {
|
||||
val giteaUsername: kotlin.String? by project
|
||||
val giteaPassword: kotlin.String? by project
|
||||
credentials {
|
||||
val giteaUsername: String? by project
|
||||
val giteaPassword: String? by project
|
||||
|
||||
username = giteaUsername
|
||||
password = giteaPassword
|
||||
@@ -51,9 +69,9 @@ publishing {
|
||||
|
||||
// Provide artifacts information requited by Maven Central
|
||||
pom {
|
||||
name.set("kotlin-komponent")
|
||||
description.set("Kotlin komponent")
|
||||
url.set("https://github.com/rnentjes/komponent")
|
||||
name.set("kotlin-simple-logging")
|
||||
description.set("Kotlin simple logging")
|
||||
url.set("https://gitea.astraeus.nl/rnentjes/kotlin-simple-logging")
|
||||
|
||||
licenses {
|
||||
license {
|
||||
@@ -69,7 +87,7 @@ publishing {
|
||||
}
|
||||
}
|
||||
scm {
|
||||
url.set("https://github.com/rnentjes/komponent")
|
||||
url.set("https://gitea.astraeus.nl/rnentjes/kotlin-simple-logging.git")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -78,3 +96,7 @@ publishing {
|
||||
signing {
|
||||
sign(publishing.publications)
|
||||
}
|
||||
|
||||
tasks.withType<PublishToMavenRepository> {
|
||||
dependsOn(tasks.withType<Sign>())
|
||||
}
|
||||
Reference in New Issue
Block a user