-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
62 lines (53 loc) · 1.57 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import org.gradle.internal.impldep.org.apache.maven.Maven
plugins {
kotlin("multiplatform") version "1.3.50"
`maven-publish`
}
group = "ru.gildor.knel"
version = "0.4.0"
repositories {
mavenCentral()
}
kotlin {
targets {
jvm()
js {
browser()
nodejs()
}
linuxX64()
linuxArm32Hfp()
macosX64()
mingwX64()
iosArm64()
iosArm32()
iosX64()
}
}
dependencies {
commonMainImplementation("org.jetbrains.kotlin:kotlin-stdlib")
commonTestImplementation("org.jetbrains.kotlin:kotlin-test-annotations-common")
commonTestImplementation("org.jetbrains.kotlin:kotlin-test-common")
"jvmMainImplementation"("org.jetbrains.kotlin:kotlin-stdlib")
"jvmTestImplementation"("org.jetbrains.kotlin:kotlin-test-junit")
"jsMainImplementation"("org.jetbrains.kotlin:kotlin-stdlib-js")
"jsTestImplementation"("org.jetbrains.kotlin:kotlin-test-js")
}
publishing {
repositories {
val bintrayUser: String? by project
bintrayUser ?: return@repositories
val bintrayKey: String by project
val bintrayRepo: String by project
val bintrayProject = project.name
val bintrayAutoRelease: Boolean? by project
maven {
name = "bintray"
url = uri("https://api.bintray.com/maven/$bintrayUser/$bintrayRepo/$bintrayProject;publish=${if (bintrayAutoRelease == true) 1 else 0}")
credentials {
username = bintrayUser
password = bintrayKey
}
}
}
}