Skip to content

Commit

Permalink
Merge branch 'publishing' into multiplatform
Browse files Browse the repository at this point in the history
  • Loading branch information
luca992 committed Aug 13, 2022
2 parents 549cdd9 + 089984a commit 1abd595
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
21 changes: 21 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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://[email protected]/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/
14 changes: 11 additions & 3 deletions ipfs-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -111,4 +111,12 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
}
}

plugins.withId("com.vanniktech.maven.publish.base") {
configure<com.vanniktech.maven.publish.MavenPublishBaseExtension> {
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01)
signAllPublications()
pomFromGradleProperties()
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down

0 comments on commit 1abd595

Please sign in to comment.