-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (36 loc) · 1.22 KB
/
build.gradle
File metadata and controls
38 lines (36 loc) · 1.22 KB
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
plugins {
id 'info.kunalsheth.units' version '6.0.1'
id 'org.jetbrains.kotlin.multiplatform'
}
kotlin {
// select the platform(s) you want to use
jvm()
js()
// linuxX64()
// macosX64()
sourceSets {
// I've never needed to run tests in the :uoms module
// but just in case you do, this config will support it
commonMain {
dependencies {
kotlin.srcDir(generateUnitsOfMeasure.generatedSrcDir)
implementation kotlin('stdlib-common')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain { dependencies { implementation kotlin('stdlib-jdk8') } }
jvmTest { dependencies { implementation kotlin('test-junit') } }
jsMain { dependencies { implementation kotlin('stdlib-js') } }
jsTest { dependencies { implementation kotlin('test-js') } }
all { languageSettings.enableLanguageFeature('InlineClasses') }
}
targets.all {
compilations.all { compileKotlinTask.dependsOn(generateUnitsOfMeasure) }
}
}
apply from: 'units-of-measure.gradle'