Preparing for release

This commit is contained in:
Julien Lengrand-Lambert
2025-05-16 22:06:02 +02:00
parent 57e771ffb0
commit 72722a8977
4 changed files with 67 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
import com.vanniktech.maven.publish.SonatypeHost
plugins {
kotlin("jvm") version "2.1.21"
id("com.vanniktech.maven.publish") version "0.30.0"
}
group = "fr.lengrand"
@@ -29,7 +32,40 @@ tasks.jar {
}
}
kotlin {
jvmToolchain(23)
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates(group.toString(), "opengraphkt", version.toString())
pom {
name = "OpenGraphKt"
description = "A minimalist Kotlin library to work with the Open Graph protocol."
inceptionYear = "2025"
url = "https://github.com/jlengrand/OpenGraphKt"
licenses {
license {
name = "The MIT License"
url = "https://mit-license.org/"
distribution = "https://mit-license.org/"
}
}
developers {
developer {
id = "jlengrand"
name = "Julien Lengrand-Lambert"
url = "https://github.com/jlengrand"
}
}
scm {
url = "https://github.com/jlengrand/OpenGraphKt"
connection = "scm:git:git://github.com/jlengrand/OpenGraphKt.git"
developerConnection = "scm:git:ssh://git@github.com/jlengrand/OpenGraphKt.git"
}
}
}