Skip to content

Commit 1abd595

Browse files
committed
Merge branch 'publishing' into multiplatform
2 parents 549cdd9 + 089984a commit 1abd595

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

gradle.properties

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
kotlin.code.style=official
22

33
kotlin.native.binary.memoryModel=experimental
4+
5+
6+
# Publishing : Required
7+
GROUP=io.github.luca992
8+
VERSION_NAME=0.20.2
9+
POM_ARTIFACT_ID=ipfs-api
10+
11+
# Publishing : Optional
12+
POM_NAME=ipfs-api
13+
POM_DESCRIPTION=IPFS API for kotlin to access a IPFS node via http
14+
POM_INCEPTION_YEAR=2022
15+
POM_URL=https://github.com/luca992/ipfs-api-kotlin
16+
POM_SCM_URL=https://github.com/luca992/ipfs-api-kotlin
17+
POM_SCM_CONNECTION=scm:git:git://github.com/luca992/ipfs-api-kotlin.git
18+
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/luca992/ipfs-api-kotlin.git
19+
POM_LICENCE_NAME=The MIT License
20+
POM_LICENCE_URL=http://opensource.org/licenses/MIT
21+
POM_LICENCE_DIST=repo
22+
POM_DEVELOPER_ID=luca992
23+
POM_DEVELOPER_NAME=Luca Spinazzola
24+
POM_DEVELOPER_URL=https://github.com/luca992/

ipfs-api/build.gradle.kts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ plugins {
33
kotlin("plugin.serialization")
44
id("jacoco")
55
id("com.github.ben-manes.versions")
6-
id("maven-publish")
6+
id("com.vanniktech.maven.publish")
77
}
88

9-
group = "com.github.ligi"
10-
version = "0.16"
9+
group = project.property("GROUP") as String
10+
version = project.property("VERSION_NAME") as String
1111

1212

1313
repositories {
@@ -111,4 +111,12 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
111111
kotlinOptions {
112112
jvmTarget = "11"
113113
}
114+
}
115+
116+
plugins.withId("com.vanniktech.maven.publish.base") {
117+
configure<com.vanniktech.maven.publish.MavenPublishBaseExtension> {
118+
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01)
119+
signAllPublications()
120+
pomFromGradleProperties()
121+
}
114122
}

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pluginManagement {
1111
kotlin("jvm") version "1.7.10"
1212
kotlin("plugin.serialization") version "1.7.10"
1313
id("com.github.ben-manes.versions") version "0.42.0"
14+
id("com.vanniktech.maven.publish") version "0.21.0"
1415
}
1516
}
1617

0 commit comments

Comments
 (0)