-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
66 lines (57 loc) · 1.38 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
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.ktlint)
alias(libs.plugins.binary.compatibility.validator)
id("maven-publish")
}
val dependencyProvider = extensions.getByType<VersionCatalogsExtension>()
.named("libs")
.findLibrary("kotlin-state-machine")
.get()
group = dependencyProvider.get().module.group
version = libs.versions.stateMachineVersion.get()
repositories {
google()
mavenCentral()
}
apiValidation {
nonPublicMarkers.add("com.gatebuzz.statemachine.impl.InternalApi")
ignoredClasses.add("com.gatebuzz.statemachine.impl.InternalApi")
}
kotlin {
applyDefaultHierarchyTemplate()
iosX64()
iosArm64()
iosSimulatorArm64()
jvm {
compilations.all {
kotlinOptions.jvmTarget = "17"
}
withJava()
testRuns["test"].executionTask.configure {
useJUnit()
}
}
sourceSets {
commonMain {
dependencies {
api(libs.kotlin.coroutines.core)
}
}
commonTest {
dependencies {
implementation(kotlin("test"))
implementation(libs.bundles.test)
}
}
iosMain {}
iosTest {}
jvmMain {}
jvmTest {}
nativeMain {}
nativeTest {}
}
}
ktlint {
disabledRules.set(setOf("no-wildcard-imports"))
}