Add option to overwrite and redeclaration warning option
This commit is contained in:
@@ -1,66 +1,70 @@
|
||||
import org.jetbrains.kotlin.fir.declarations.builder.buildResolvedImport
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform") version "1.4-M1"
|
||||
kotlin("multiplatform") version "1.4.0-rc"
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
group = "nl.astraeus"
|
||||
version = "0.1.0-SNAPSHOT"
|
||||
version = "0.3.6-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
//apply(plugin = "kotlin-dce-js")
|
||||
|
||||
kotlin {
|
||||
/* Targets configuration omitted.
|
||||
* To find out how to configure the targets, please follow the link:
|
||||
* https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#setting-up-targets */
|
||||
jvm()
|
||||
js {
|
||||
produceExecutable()
|
||||
browser {
|
||||
distribution {
|
||||
directory = File("$projectDir/web/")
|
||||
}
|
||||
}
|
||||
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 {
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib-common"))
|
||||
val commonMain by getting {}
|
||||
}
|
||||
}
|
||||
|
||||
implementation("io.github.microutils:kotlin-logging-common:1.7.8")
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test-common"))
|
||||
//implementation(kotlin("test-annotations-common"))
|
||||
}
|
||||
}
|
||||
val jsMain by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib-js"))
|
||||
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
|
||||
|
||||
implementation("io.github.microutils:kotlin-logging-js:1.7.8")
|
||||
username = nexusUsername
|
||||
password = nexusPassword
|
||||
}
|
||||
}
|
||||
val jsTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test-js"))
|
||||
//implementation(kotlin("test-annotations-js"))
|
||||
}
|
||||
}
|
||||
val jvmMain by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib-jdk8"))
|
||||
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
|
||||
|
||||
implementation("org.slf4j:slf4j-api:1.7.29")
|
||||
implementation("org.slf4j:slf4j-simple:1.7.29")
|
||||
implementation("io.github.microutils:kotlin-logging:1.7.8")
|
||||
username = nexusUsername
|
||||
password = nexusPassword
|
||||
}
|
||||
}
|
||||
}
|
||||
publications {
|
||||
val kotlinMultiplatform by getting {
|
||||
//artifactId = "kotlin-css-generator"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user