Version 1.1.4
This commit is contained in:
2
.idea/kotlinc.xml
generated
2
.idea/kotlinc.xml
generated
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="KotlinJpsPluginSettings">
|
<component name="KotlinJpsPluginSettings">
|
||||||
<option name="version" value="2.0.21" />
|
<option name="version" value="2.1.21" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
import org.gradle.model.internal.core.ModelNodes.withType
|
import com.vanniktech.maven.publish.SonatypeHost
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm") version "2.1.0"
|
kotlin("jvm") version "2.1.21"
|
||||||
`maven-publish`
|
|
||||||
signing
|
signing
|
||||||
id("org.jetbrains.dokka") version "1.5.31"
|
id("org.jetbrains.dokka") version "2.0.0"
|
||||||
|
id("com.vanniktech.maven.publish") version "0.31.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "nl.astraeus"
|
group = "nl.astraeus"
|
||||||
version = "1.1.4-SNAPSHOT"
|
version = "1.1.4"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@@ -25,19 +25,6 @@ tasks.test {
|
|||||||
maxHeapSize = "1g"
|
maxHeapSize = "1g"
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
val javadocJar by tasks.registering(Jar::class) {
|
||||||
archiveClassifier.set("javadoc")
|
archiveClassifier.set("javadoc")
|
||||||
}
|
}
|
||||||
@@ -49,6 +36,7 @@ val sourcesJar by tasks.registering(Jar::class) {
|
|||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
maven {
|
maven {
|
||||||
name = "gitea"
|
name = "gitea"
|
||||||
setUrl("https://gitea.astraeus.nl/api/packages/rnentjes/maven")
|
setUrl("https://gitea.astraeus.nl/api/packages/rnentjes/maven")
|
||||||
@@ -61,45 +49,56 @@ publishing {
|
|||||||
password = giteaPassword
|
password = giteaPassword
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
maven {
|
||||||
|
name = "gitea8443"
|
||||||
|
setUrl("https://gitea.astraeus.nl:8443/api/packages/rnentjes/maven")
|
||||||
|
|
||||||
publications {
|
credentials {
|
||||||
create<MavenPublication>("mavenKotlin") {
|
val giteaUsername: String? by project
|
||||||
artifact(javadocJar.get())
|
val giteaPassword: String? by project
|
||||||
artifact(tasks.jar.get())
|
|
||||||
artifact(sourcesJar.get())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
publications.withType<MavenPublication> {
|
|
||||||
// Provide artifacts information requited by Maven Central
|
|
||||||
pom {
|
|
||||||
name.set("simple-persistence-kotlin")
|
|
||||||
description.set("Simple persistence in Kotlin")
|
|
||||||
|
|
||||||
licenses {
|
username = giteaUsername
|
||||||
license {
|
password = giteaPassword
|
||||||
name.set("MIT")
|
|
||||||
url.set("https://opensource.org/licenses/MIT")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
developers {
|
|
||||||
developer {
|
|
||||||
id.set("rnentjes")
|
|
||||||
name.set("Rien Nentjes")
|
|
||||||
email.set("info@nentjes.com")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
scm {
|
|
||||||
url.set("https://gitea.astraeus.nl/rnentjes/simple-persistence-kotlin")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<AbstractPublishToMaven> {
|
||||||
|
dependsOn(tasks.withType<Sign>())
|
||||||
|
}
|
||||||
|
|
||||||
signing {
|
signing {
|
||||||
sign(publishing.publications)
|
sign(publishing.publications)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<PublishToMavenRepository> {
|
mavenPublishing {
|
||||||
dependsOn(tasks.withType<Sign>())
|
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
|
||||||
|
|
||||||
|
signAllPublications()
|
||||||
|
|
||||||
|
coordinates(group.toString(), name, version.toString())
|
||||||
|
|
||||||
|
pom {
|
||||||
|
name = "simple-persistence-kotlin"
|
||||||
|
description = "Simple persistence"
|
||||||
|
inceptionYear = "2024"
|
||||||
|
url = "https://gitea.astraeus.nl/rnentjes/simple-persistence-kotlin"
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name = "MIT"
|
||||||
|
url = "https://opensource.org/licenses/MIT"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id = "rnentjes"
|
||||||
|
name = "Rien Nentjes"
|
||||||
|
email = "info@nentjes.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scm {
|
||||||
|
url = "https://gitea.astraeus.nl/rnentjes/simple-persistence-kotlin"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user