Open michalharakal opened 4 years ago
As inspiration can help community drived project releasing artifacts. See
As far I've leard, bintray plugin isn't not reliable and standard gradle maven publish plugin is working well. Bintray project as reference:
Also check simple MPP project starter https://github.com/sujitpoudel/kmp-android-ios-starter
Another usefull project releasing artifact https://github.com/ToxicBakery/Accidental-Noise-Generator/blob/master/generator/build.gradle.kts#L135
Folowwing posible
File hast to be called simple.main.kts
@file:Repository("https://jitpack.io")
@file:DependsOn("com.github.dukecon.dukecon_mobile:domain-jvm:develop-SNAPSHOT")
import org.dukecon.domain.model.Room
println("Hello from Kotlin!")
val room = Room("1", "Saal 1")
println("Hello from ${room.name}")
for (arg in args) {
println("arg: $arg")
}
Execute follwoing from CLI:
kotlinc -cp kotlin-main-kts.jar -script simple.main.kts
File kotlin-main-kts.jar
has to be also in the path and can be downloaded from bintray or maven central-
See details here: Jetbrain's blog
official docs to releases https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#publishing-a-multiplatform-library
The goal is to implement a process of realsing of multiplatform
Propossed steps:
cocoapods
BOM
pom