71 lines
1.8 KiB
Kotlin
71 lines
1.8 KiB
Kotlin
import org.jetbrains.kotlin.fir.declarations.builder.buildResolvedImport
|
|
|
|
plugins {
|
|
kotlin("multiplatform") version "1.4.0-rc"
|
|
`maven-publish`
|
|
}
|
|
|
|
group = "nl.astraeus"
|
|
version = "0.3.6-SNAPSHOT"
|
|
|
|
repositories {
|
|
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
kotlin {
|
|
jvm()
|
|
js(BOTH) {
|
|
browser()
|
|
|
|
//produceKotlinLibrary()
|
|
}
|
|
val hostOs = System.getProperty("os.name")
|
|
val isMingwX64 = hostOs.startsWith("Windows")
|
|
val nativeTarget = when {
|
|
hostOs == "Mac OS X" -> macosX64("native")
|
|
hostOs == "Linux" -> linuxX64("native")
|
|
isMingwX64 -> mingwX64("native")
|
|
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
|
|
}
|
|
|
|
sourceSets {
|
|
val commonMain by getting {}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "releases"
|
|
// change to point to your repo, e.g. http://my.org/repo
|
|
url = uri("http://nexus.astraeus.nl/nexus/content/repositories/releases")
|
|
credentials {
|
|
val nexusUsername: String by project
|
|
val nexusPassword: String by project
|
|
|
|
username = nexusUsername
|
|
password = nexusPassword
|
|
}
|
|
}
|
|
maven {
|
|
name = "snapshots"
|
|
// change to point to your repo, e.g. http://my.org/repo
|
|
url = uri("http://nexus.astraeus.nl/nexus/content/repositories/snapshots")
|
|
credentials {
|
|
val nexusUsername: String by project
|
|
val nexusPassword: String by project
|
|
|
|
username = nexusUsername
|
|
password = nexusPassword
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
val kotlinMultiplatform by getting {
|
|
//artifactId = "kotlin-css-generator"
|
|
}
|
|
}
|
|
}
|