-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
executable file
·79 lines (72 loc) · 2.02 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
kotlin("multiplatform") version "1.9.0"
kotlin("plugin.serialization") version "1.9.0"
id("maven-publish")
}
group = "com.blackstone"
version = "0.1.5"
repositories {
gradlePluginPortal()
google()
maven ("https://dl.bintray.com/korlibs/korlibs" )
mavenCentral()
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
}
ios()
iosSimulatorArm64()
sourceSets {
val commonMain by getting {
dependencies {
implementation("net.mamoe.yamlkt:yamlkt:0.12.0")
implementation("com.soywiz.korlibs.krypto:krypto:2.4.12")
implementation( "com.benasher44:uuid:0.4.0")
implementation("com.soywiz.korlibs.klock:klock:2.4.13")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.3.2")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
// val jvmMain by getting
val jvmTest by getting {
dependencies {
implementation(kotlin("test-junit"))
}
}
val iosMain by getting {}
val iosTest by getting {}
//
// val jsMain by getting
val iosSimulatorArm64Main by getting {
dependsOn(iosMain)
}
val iosSimulatorArm64Test by getting {
dependsOn(iosTest)
}
}
}
publishing {
// this fetches our credentials from ~/.gradle/gradle.properties
val mavenUser: String? by project
val mavenPassword: String? by project
repositories {
maven {
setUrl("https://repos.awhb.dev/releases")
authentication {
create("basic", BasicAuthentication::class.java)
}
credentials {
username = mavenUser
password = mavenPassword
}
}
}
}