diff --git a/gradle.properties b/gradle.properties index b8d590b..82de7c3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,24 @@ kotlin.code.style=official kotlin.native.binary.memoryModel=experimental + + +# Publishing : Required +GROUP=io.github.luca992 +VERSION_NAME=0.20.2 +POM_ARTIFACT_ID=ipfs-api + +# Publishing : Optional +POM_NAME=ipfs-api +POM_DESCRIPTION=IPFS API for kotlin to access a IPFS node via http +POM_INCEPTION_YEAR=2022 +POM_URL=https://github.com/luca992/ipfs-api-kotlin +POM_SCM_URL=https://github.com/luca992/ipfs-api-kotlin +POM_SCM_CONNECTION=scm:git:git://github.com/luca992/ipfs-api-kotlin.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/luca992/ipfs-api-kotlin.git +POM_LICENCE_NAME=The MIT License +POM_LICENCE_URL=http://opensource.org/licenses/MIT +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=luca992 +POM_DEVELOPER_NAME=Luca Spinazzola +POM_DEVELOPER_URL=https://github.com/luca992/ \ No newline at end of file diff --git a/ipfs-api/build.gradle.kts b/ipfs-api/build.gradle.kts index ab01d45..964b964 100644 --- a/ipfs-api/build.gradle.kts +++ b/ipfs-api/build.gradle.kts @@ -3,11 +3,11 @@ plugins { kotlin("plugin.serialization") id("jacoco") id("com.github.ben-manes.versions") - id("maven-publish") + id("com.vanniktech.maven.publish") } -group = "com.github.ligi" -version = "0.16" +group = project.property("GROUP") as String +version = project.property("VERSION_NAME") as String repositories { @@ -111,4 +111,12 @@ tasks.withType { kotlinOptions { jvmTarget = "11" } +} + +plugins.withId("com.vanniktech.maven.publish.base") { + configure { + publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01) + signAllPublications() + pomFromGradleProperties() + } } \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index a78a187..21a74ee 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -11,6 +11,7 @@ pluginManagement { kotlin("jvm") version "1.7.10" kotlin("plugin.serialization") version "1.7.10" id("com.github.ben-manes.versions") version "0.42.0" + id("com.vanniktech.maven.publish") version "0.21.0" } }