2019-07-20 11:39:26 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2019 Ugljesa Jovanovic
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
@file:Suppress("UnstableApiUsage")
|
2020-01-05 20:21:34 +01:00
|
|
|
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest
|
|
|
|
import org.jetbrains.kotlin.gradle.targets.js.testing.KotlinJsTest
|
2019-07-20 11:39:26 +02:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin(PluginsDeps.multiplatform)
|
2020-05-28 22:41:05 +02:00
|
|
|
id(PluginsDeps.mavenPublish)
|
|
|
|
id(PluginsDeps.signing)
|
|
|
|
id(PluginsDeps.node) version Versions.nodePlugin
|
2020-06-13 18:16:07 +02:00
|
|
|
id(PluginsDeps.dokka)
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
val sonatypeStaging = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
|
|
|
val sonatypeSnapshots = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
|
|
|
2020-05-28 22:41:05 +02:00
|
|
|
val sonatypePassword: String? by project
|
2019-07-20 11:39:26 +02:00
|
|
|
|
2020-05-28 22:41:05 +02:00
|
|
|
val sonatypeUsername: String? by project
|
2019-07-20 11:39:26 +02:00
|
|
|
|
2020-05-28 22:41:05 +02:00
|
|
|
val sonatypePasswordEnv: String? = System.getenv()["SONATYPE_PASSWORD"]
|
|
|
|
val sonatypeUsernameEnv: String? = System.getenv()["SONATYPE_USERNAME"]
|
2019-07-20 11:39:26 +02:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
|
|
|
|
}
|
2020-05-30 22:47:01 +02:00
|
|
|
group = ReleaseInfo.group
|
|
|
|
version = ReleaseInfo.version
|
2019-07-20 11:39:26 +02:00
|
|
|
|
2020-01-05 20:41:58 +01:00
|
|
|
val ideaActive = System.getProperty("idea.active") == "true"
|
|
|
|
|
2019-07-20 11:39:26 +02:00
|
|
|
kotlin {
|
2020-01-06 13:51:55 -08:00
|
|
|
val hostOsName = getHostOsName()
|
2020-06-01 13:00:07 +02:00
|
|
|
runningOnLinuxx86_64 {
|
2020-05-16 23:55:26 +02:00
|
|
|
jvm()
|
|
|
|
js {
|
2020-06-11 19:48:10 +02:00
|
|
|
|
|
|
|
browser {
|
|
|
|
|
|
|
|
testTask {
|
2020-06-11 20:29:03 +02:00
|
|
|
// isRunningInTravis {
|
|
|
|
enabled = false //Until I sort out testing on travis, and figure out how to increase karma timeout
|
|
|
|
// }
|
2020-06-11 19:48:10 +02:00
|
|
|
useKarma {
|
|
|
|
useChrome()
|
2020-06-11 20:29:03 +02:00
|
|
|
|
2020-06-11 19:48:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
nodejs {
|
|
|
|
testTask {
|
|
|
|
useMocha() {
|
|
|
|
timeout = "10s"
|
|
|
|
}
|
2019-12-26 15:05:15 +01:00
|
|
|
}
|
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
|
2019-12-26 15:05:15 +01:00
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
linuxX64("linux") {
|
|
|
|
binaries {
|
|
|
|
staticLib {
|
2020-05-24 09:46:35 +02:00
|
|
|
optimized = true
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-01 11:29:45 +02:00
|
|
|
|
2020-06-11 19:48:10 +02:00
|
|
|
linuxArm64() {
|
2020-06-01 11:29:45 +02:00
|
|
|
binaries {
|
|
|
|
staticLib {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-11 19:48:10 +02:00
|
|
|
linuxArm32Hfp() {
|
2020-06-01 11:29:45 +02:00
|
|
|
binaries {
|
|
|
|
staticLib {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-11 19:48:10 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-01 11:29:45 +02:00
|
|
|
}
|
|
|
|
|
2020-05-31 21:23:45 +02:00
|
|
|
runningOnMacos {
|
2020-08-09 12:22:39 +02:00
|
|
|
iosX64() {
|
2020-05-16 23:55:26 +02:00
|
|
|
binaries {
|
|
|
|
framework {
|
2020-05-24 09:46:35 +02:00
|
|
|
optimized = true
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
}
|
2020-08-09 12:22:39 +02:00
|
|
|
iosArm64() {
|
2020-05-16 23:55:26 +02:00
|
|
|
binaries {
|
|
|
|
framework {
|
2020-05-24 09:46:35 +02:00
|
|
|
optimized = true
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-09 12:22:39 +02:00
|
|
|
iosArm32() {
|
2020-05-16 23:55:26 +02:00
|
|
|
binaries {
|
|
|
|
framework {
|
2020-05-24 09:46:35 +02:00
|
|
|
optimized = true
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
macosX64() {
|
|
|
|
binaries {
|
|
|
|
framework {
|
2020-05-24 09:46:35 +02:00
|
|
|
optimized = true
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
}
|
2020-06-13 21:04:49 +02:00
|
|
|
tvosX64() {
|
|
|
|
binaries {
|
|
|
|
framework {
|
|
|
|
optimized = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tvosArm64() {
|
|
|
|
binaries {
|
|
|
|
framework {
|
|
|
|
optimized = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
watchosArm64() {
|
|
|
|
binaries {
|
|
|
|
framework {
|
|
|
|
optimized = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
watchosArm32() {
|
|
|
|
binaries {
|
|
|
|
framework {
|
|
|
|
optimized = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
watchosX86() {
|
|
|
|
binaries {
|
|
|
|
framework {
|
|
|
|
optimized = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
2020-05-31 21:23:45 +02:00
|
|
|
runningOnWindows {
|
2019-07-20 11:39:26 +02:00
|
|
|
|
2020-05-16 23:55:26 +02:00
|
|
|
mingwX64() {
|
|
|
|
binaries {
|
|
|
|
staticLib {
|
2020-05-24 09:46:35 +02:00
|
|
|
optimized = true
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2019-12-26 15:05:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-16 21:49:16 +02:00
|
|
|
// No coroutines support for mingwX86
|
|
|
|
// mingwX86() {
|
|
|
|
// binaries {
|
|
|
|
// staticLib {
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
2019-12-26 15:05:15 +01:00
|
|
|
|
|
|
|
|
2019-07-20 11:39:26 +02:00
|
|
|
println(targets.names)
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin(Deps.Common.stdLib))
|
|
|
|
implementation(kotlin(Deps.Common.test))
|
|
|
|
implementation(Deps.Common.kotlinBigNum)
|
2020-05-24 10:29:30 +02:00
|
|
|
implementation(project(Deps.Common.apiProject))
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin(Deps.Common.test))
|
|
|
|
implementation(kotlin(Deps.Common.testAnnotation))
|
|
|
|
}
|
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
|
2020-05-28 22:41:05 +02:00
|
|
|
|
|
|
|
val nativeMain by creating {
|
|
|
|
dependsOn(commonMain)
|
|
|
|
dependencies {
|
2020-01-05 20:41:58 +01:00
|
|
|
}
|
2020-06-07 17:18:41 +02:00
|
|
|
isRunningInIdea {
|
|
|
|
kotlin.setSrcDirs(emptySet<String>())
|
|
|
|
}
|
2020-05-28 22:41:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
val nativeTest by creating {
|
|
|
|
dependsOn(commonTest)
|
|
|
|
dependencies {
|
2020-01-05 20:41:58 +01:00
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
2020-05-28 22:41:05 +02:00
|
|
|
|
|
|
|
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> {
|
|
|
|
compilations.getByName("main") {
|
|
|
|
println("Setting native sourceset dependancy for $name")
|
2020-05-30 00:09:10 +02:00
|
|
|
if ((this@withType.name.contains("ios") ||
|
2020-05-30 00:15:14 +02:00
|
|
|
this@withType.name.contains("mingw")).not()
|
2020-05-30 00:09:10 +02:00
|
|
|
) {
|
2020-05-28 23:59:07 +02:00
|
|
|
println("Setting native sourceset dependancy for $this@withType.name")
|
2020-05-28 22:41:05 +02:00
|
|
|
defaultSourceSet.dependsOn(nativeMain)
|
2020-01-05 20:41:58 +01:00
|
|
|
}
|
|
|
|
}
|
2020-05-28 22:41:05 +02:00
|
|
|
compilations.getByName("test") {
|
|
|
|
println("Setting native sourceset dependancy for $name")
|
2020-05-30 00:16:23 +02:00
|
|
|
if ((this@withType.name.contains("ios") ||
|
|
|
|
this@withType.name.contains("mingw")).not()
|
|
|
|
) {
|
2020-05-28 23:59:07 +02:00
|
|
|
println("Setting native sourceset dependancy for $this@withType.name")
|
2020-05-28 22:41:05 +02:00
|
|
|
defaultSourceSet.dependsOn(nativeTest)
|
2020-01-05 20:41:58 +01:00
|
|
|
}
|
2019-12-26 15:05:15 +01:00
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
2020-01-05 20:41:58 +01:00
|
|
|
|
2020-05-28 22:41:05 +02:00
|
|
|
|
|
|
|
|
2020-05-31 21:23:45 +02:00
|
|
|
runningOnLinuxx86_64 {
|
2020-05-16 23:55:26 +02:00
|
|
|
val jvmMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin(Deps.Jvm.stdLib))
|
|
|
|
implementation(kotlin(Deps.Jvm.test))
|
|
|
|
implementation(kotlin(Deps.Jvm.testJUnit))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val jvmTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin(Deps.Jvm.test))
|
|
|
|
implementation(kotlin(Deps.Jvm.testJUnit))
|
|
|
|
implementation(kotlin(Deps.Jvm.reflection))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val jsMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin(Deps.Js.stdLib))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val jsTest by getting {
|
|
|
|
dependencies {
|
2020-05-18 23:45:24 +02:00
|
|
|
implementation(kotlin(Deps.Js.test))
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
val linuxMain by getting {
|
|
|
|
dependsOn(nativeMain)
|
2020-05-28 22:41:05 +02:00
|
|
|
//Force idea to consider native sourceset
|
|
|
|
if (ideaActive) {
|
|
|
|
kotlin.srcDir("src/nativeMain/kotlin")
|
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
|
|
|
val linuxTest by getting {
|
|
|
|
dependsOn(nativeTest)
|
2020-06-07 17:18:41 +02:00
|
|
|
// Force idea to consider native sourceset
|
2020-05-28 22:41:05 +02:00
|
|
|
if (ideaActive) {
|
|
|
|
kotlin.srcDir("src/nativeTest/kotlin")
|
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2020-05-31 21:23:45 +02:00
|
|
|
|
2020-06-01 11:29:45 +02:00
|
|
|
val linuxArm64Main by getting {
|
|
|
|
dependsOn(nativeMain)
|
|
|
|
}
|
|
|
|
|
|
|
|
val linuxArm64Test by getting {
|
|
|
|
dependsOn(nativeTest)
|
|
|
|
}
|
|
|
|
|
2020-06-01 11:35:11 +02:00
|
|
|
val linuxArm32HfpMain by getting {
|
|
|
|
dependsOn(nativeMain)
|
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
|
2020-06-01 11:35:11 +02:00
|
|
|
val linuxArm32HfpTest by getting {
|
|
|
|
dependsOn(nativeTest)
|
|
|
|
}
|
2020-06-11 19:48:10 +02:00
|
|
|
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
|
2020-06-11 19:48:10 +02:00
|
|
|
|
2020-05-31 21:23:45 +02:00
|
|
|
runningOnMacos{
|
2020-05-16 23:55:26 +02:00
|
|
|
|
2020-08-09 12:24:50 +02:00
|
|
|
val iosX64Main by getting {
|
2020-05-29 23:44:20 +02:00
|
|
|
dependsOn(nativeMain)
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2020-08-09 12:24:50 +02:00
|
|
|
val iosX64Test by getting {
|
2020-05-29 23:44:20 +02:00
|
|
|
dependsOn(nativeTest)
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
|
|
|
|
2020-08-09 11:41:56 +02:00
|
|
|
val iosArm64Main by getting {
|
2020-05-29 23:44:20 +02:00
|
|
|
dependsOn(nativeMain)
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2020-08-09 11:41:56 +02:00
|
|
|
val iosArm64Test by getting {
|
2020-05-29 23:44:20 +02:00
|
|
|
dependsOn(nativeTest)
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
|
|
|
|
2020-08-09 11:41:56 +02:00
|
|
|
val iosArm32Main by getting {
|
2020-05-29 23:44:20 +02:00
|
|
|
dependsOn(nativeMain)
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2020-08-09 11:41:56 +02:00
|
|
|
val iosArm32Test by getting {
|
2020-05-29 23:44:20 +02:00
|
|
|
dependsOn(nativeTest)
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
val macosX64Main by getting {
|
2020-05-29 23:59:15 +02:00
|
|
|
dependsOn(commonMain)
|
2020-05-29 23:50:56 +02:00
|
|
|
if (ideaActive) {
|
|
|
|
kotlin.srcDir("src/nativeMain/kotlin")
|
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
|
|
|
val macosX64Test by getting {
|
2020-05-29 23:59:15 +02:00
|
|
|
dependsOn(commonTest)
|
2020-05-29 23:50:56 +02:00
|
|
|
if (ideaActive) {
|
|
|
|
kotlin.srcDir("src/nativeTest/kotlin")
|
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
2020-05-16 23:55:26 +02:00
|
|
|
|
2020-05-16 21:49:16 +02:00
|
|
|
// Coroutines don't support mingwx86 yet
|
|
|
|
// val mingwX86Main by getting {
|
|
|
|
// dependsOn(commonMain)
|
|
|
|
// dependencies {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
// val mingwX86Test by getting {
|
|
|
|
// dependsOn(commonTest)
|
|
|
|
// }
|
|
|
|
//
|
2020-05-31 21:23:45 +02:00
|
|
|
runningOnWindows {
|
2020-05-16 23:55:26 +02:00
|
|
|
val mingwX64Main by getting {
|
2020-05-30 00:01:09 +02:00
|
|
|
dependsOn(commonMain)
|
2020-05-30 00:22:33 +02:00
|
|
|
dependencies {
|
|
|
|
}
|
2020-01-06 13:51:55 -08:00
|
|
|
}
|
2019-12-26 15:05:15 +01:00
|
|
|
|
2020-05-16 23:55:26 +02:00
|
|
|
val mingwX64Test by getting {
|
|
|
|
dependsOn(commonTest)
|
|
|
|
}
|
2019-12-26 15:05:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-05-10 11:11:09 +02:00
|
|
|
all {
|
|
|
|
languageSettings.enableLanguageFeature("InlineClasses")
|
2020-06-05 20:09:38 +02:00
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
|
2020-05-10 11:11:09 +02:00
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
task<Copy>("copyPackageJson") {
|
|
|
|
dependsOn("compileKotlinJs")
|
|
|
|
println("Copying package.json from $projectDir/core/src/jsMain/npm")
|
2020-05-28 22:41:05 +02:00
|
|
|
from("$projectDir/src/jsMain/npm")
|
2019-07-20 11:39:26 +02:00
|
|
|
println("Node modules dir ${node.nodeModulesDir}")
|
2020-05-28 22:41:05 +02:00
|
|
|
into("${node.nodeModulesDir}")
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
2020-05-17 00:00:01 +02:00
|
|
|
|
2019-07-20 11:39:26 +02:00
|
|
|
|
|
|
|
create<Jar>("javadocJar") {
|
2020-08-02 18:34:45 +02:00
|
|
|
dependsOn(dokkaJavadoc)
|
2019-07-20 11:39:26 +02:00
|
|
|
archiveClassifier.set("javadoc")
|
2020-08-02 18:34:45 +02:00
|
|
|
from(dokkaJavadoc.get().outputDirectory)
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|
2020-08-02 18:34:45 +02:00
|
|
|
dokkaJavadoc {
|
2020-05-28 22:41:05 +02:00
|
|
|
println("Dokka !")
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
2020-05-31 21:23:45 +02:00
|
|
|
if (getHostOsName() == "linux" && getHostArchitecture() == "x86-64") {
|
2020-05-17 00:00:01 +02:00
|
|
|
|
2020-05-16 23:55:26 +02:00
|
|
|
val jvmTest by getting(Test::class) {
|
|
|
|
testLogging {
|
|
|
|
events("PASSED", "FAILED", "SKIPPED")
|
|
|
|
}
|
2020-01-05 20:21:34 +01:00
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
|
2020-05-16 23:55:26 +02:00
|
|
|
val linuxTest by getting(KotlinNativeTest::class) {
|
2020-01-06 13:51:55 -08:00
|
|
|
|
2020-05-16 23:55:26 +02:00
|
|
|
testLogging {
|
|
|
|
events("PASSED", "FAILED", "SKIPPED")
|
2020-05-28 22:41:05 +02:00
|
|
|
// showStandardStreams = true
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
2020-01-06 13:51:55 -08:00
|
|
|
}
|
|
|
|
|
2020-05-18 23:45:24 +02:00
|
|
|
val jsNodeTest by getting(KotlinJsTest::class) {
|
2020-05-16 23:55:26 +02:00
|
|
|
testLogging {
|
|
|
|
events("PASSED", "FAILED", "SKIPPED")
|
|
|
|
showStandardStreams = true
|
|
|
|
}
|
2020-01-05 20:21:34 +01:00
|
|
|
}
|
|
|
|
|
2020-05-18 23:45:24 +02:00
|
|
|
// val legacyjsNodeTest by getting(KotlinJsTest::class) {
|
|
|
|
//
|
|
|
|
// testLogging {
|
|
|
|
// events("PASSED", "FAILED", "SKIPPED")
|
|
|
|
// showStandardStreams = true
|
|
|
|
// }
|
|
|
|
// }
|
2020-05-18 19:37:11 +02:00
|
|
|
|
2020-05-17 23:36:01 +02:00
|
|
|
// val jsIrBrowserTest by getting(KotlinJsTest::class) {
|
|
|
|
// testLogging {
|
|
|
|
// events("PASSED", "FAILED", "SKIPPED")
|
|
|
|
// showStandardStreams = true
|
|
|
|
// }
|
2020-05-16 22:38:18 +02:00
|
|
|
// }
|
2020-05-16 23:55:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (getHostOsName() == "windows") {
|
|
|
|
val mingwX64Test by getting(KotlinNativeTest::class) {
|
|
|
|
|
|
|
|
testLogging {
|
|
|
|
events("PASSED", "FAILED", "SKIPPED")
|
|
|
|
showStandardStreams = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-05 20:21:34 +01:00
|
|
|
|
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signing {
|
|
|
|
isRequired = false
|
|
|
|
sign(publishing.publications)
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications.withType(MavenPublication::class) {
|
|
|
|
artifact(tasks["javadocJar"])
|
|
|
|
pom {
|
|
|
|
name.set("Kotlin Multiplatform Crypto")
|
|
|
|
description.set("Kotlin Multiplatform Crypto library")
|
|
|
|
url.set("https://github.com/ionspin/kotlin-multiplatform-crypto")
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name.set("The Apache License, Version 2.0")
|
|
|
|
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id.set("ionspin")
|
|
|
|
name.set("Ugljesa Jovanovic")
|
|
|
|
email.set("opensource@ionspin.com")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scm {
|
|
|
|
url.set("https://github.com/ionspin/kotlin-multiplatform-crypto")
|
|
|
|
connection.set("scm:git:git://git@github.com:ionspin/kotlin-multiplatform-crypto.git")
|
|
|
|
developerConnection.set("scm:git:ssh://git@github.com:ionspin/kotlin-multiplatform-crypto.git")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
|
|
|
|
url = uri(sonatypeStaging)
|
|
|
|
credentials {
|
|
|
|
username = sonatypeUsername ?: sonatypeUsernameEnv ?: ""
|
|
|
|
password = sonatypePassword ?: sonatypePasswordEnv ?: ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
name = "snapshot"
|
|
|
|
url = uri(sonatypeSnapshots)
|
|
|
|
credentials {
|
|
|
|
username = sonatypeUsername ?: sonatypeUsernameEnv ?: ""
|
|
|
|
password = sonatypePassword ?: sonatypePasswordEnv ?: ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|