2024-11-11 16:15:49 +00:00
|
|
|
import com.vanniktech.maven.publish.SonatypeHost
|
|
|
|
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
2024-11-15 05:22:36 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
|
2024-11-11 16:15:49 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlinMultiplatform)
|
|
|
|
alias(libs.plugins.androidLibrary)
|
|
|
|
alias(libs.plugins.vanniktech.mavenPublish)
|
|
|
|
}
|
|
|
|
|
2024-11-17 11:22:46 +00:00
|
|
|
group = "dev.usbharu"
|
2024-11-11 16:15:49 +00:00
|
|
|
version = "1.0.0"
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm()
|
|
|
|
androidTarget {
|
|
|
|
publishLibraryVariants("release")
|
|
|
|
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
compilerOptions {
|
|
|
|
jvmTarget.set(JvmTarget.JVM_1_8)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
iosX64()
|
|
|
|
iosArm64()
|
|
|
|
iosSimulatorArm64()
|
|
|
|
linuxX64()
|
2024-11-15 05:22:36 +00:00
|
|
|
mingwX64()
|
|
|
|
@OptIn(ExperimentalWasmDsl::class)
|
|
|
|
js {
|
|
|
|
browser()
|
|
|
|
nodejs()
|
2024-11-15 05:56:40 +00:00
|
|
|
binaries.library()
|
|
|
|
generateTypeScriptDefinitions()
|
2024-11-15 05:22:36 +00:00
|
|
|
}
|
2024-11-11 16:15:49 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
//put your multiplatform dependencies here
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.kotlin.test)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2024-11-17 11:22:46 +00:00
|
|
|
namespace = "dev.usbharu.markdown"
|
2024-11-11 16:15:49 +00:00
|
|
|
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mavenPublishing {
|
|
|
|
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
|
|
|
|
|
|
|
|
signAllPublications()
|
|
|
|
|
2024-11-17 11:22:46 +00:00
|
|
|
coordinates(group.toString(), "markdown-kt", version.toString())
|
2024-11-11 16:15:49 +00:00
|
|
|
|
|
|
|
pom {
|
2024-11-17 11:22:46 +00:00
|
|
|
name = "markdown-kt"
|
|
|
|
description = "Kotlin Multiplatform markdown parser"
|
2024-11-11 16:15:49 +00:00
|
|
|
inceptionYear = "2024"
|
|
|
|
url = "https://github.com/kotlin/multiplatform-library-template/"
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name = "XXX"
|
|
|
|
url = "YYY"
|
|
|
|
distribution = "ZZZ"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id = "XXX"
|
|
|
|
name = "YYY"
|
|
|
|
url = "ZZZ"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scm {
|
|
|
|
url = "XXX"
|
|
|
|
connection = "YYY"
|
|
|
|
developerConnection = "ZZZ"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|