Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (36 sloc) 1.22 KB
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'
You can’t perform that action at this time.