Skip to content

Commit

Permalink
Add configurations to publish kotlin multiplatform lib
Browse files Browse the repository at this point in the history
  • Loading branch information
extmkv committed Sep 10, 2024
1 parent 4eae42c commit 83827b5
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 15 deletions.
10 changes: 10 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plugins {
allprojects {
pluginManager.withPlugin("com.vanniktech.maven.publish") {
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01, automaticRelease = true)
publishToMavenCentral(SonatypeHost.DEFAULT, automaticRelease = true)
signAllPublications()
}
}
Expand Down
40 changes: 27 additions & 13 deletions mvi/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinMultiplatform
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import org.jlleitschuh.gradle.ktlint.KtlintExtension

plugins {
Expand All @@ -15,22 +18,29 @@ kotlin {
withJava()
}

iosX64()
iosArm64()
iosSimulatorArm64()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64(),

macosX64()
macosArm64()
macosX64(),
macosArm64(),

watchosArm32()
watchosArm64()
watchosDeviceArm64()
watchosSimulatorArm64()
watchosX64()
watchosArm32(),
watchosArm64(),
watchosDeviceArm64(),
watchosSimulatorArm64(),
watchosX64(),

tvosArm64()
tvosSimulatorArm64()
tvosX64()
tvosArm64(),
tvosSimulatorArm64(),
tvosX64(),
).forEach {
it.binaries.framework {
baseName = "mvi"
isStatic = true
}
}

sourceSets {
commonMain.dependencies {
Expand All @@ -55,3 +65,7 @@ tasks {
useJUnitPlatform()
}
}

configure<MavenPublishBaseExtension> {
configure(KotlinMultiplatform(javadocJar = JavadocJar.Empty()))
}
2 changes: 1 addition & 1 deletion mvi/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
POM_ARTIFACT_ID=mvi
GROUP=com.adidas.mvi
VERSION_CODE=1
VERSION_NAME=1.8.0
VERSION_NAME=1.8.1
POM_NAME=Adidas MVI
POM_DESCRIPTION=Adidas MVI

0 comments on commit 83827b5

Please sign in to comment.