Setup separate sourceset for unsigned integer types

Build jar with unsigned types and put it to dist
This commit is contained in:
Ilya Gorbunov
2018-04-25 16:20:14 +03:00
parent e886460130
commit e57e3971b6
2 changed files with 39 additions and 3 deletions
+15
View File
@@ -26,11 +26,18 @@ sourceSets {
srcDir 'test'
}
}
unsigned {
kotlin {
srcDir '../unsigned/src'
}
}
}
dependencies {
testCompile project(":kotlin-test:kotlin-test-common")
testCompile project(":kotlin-test:kotlin-test-annotations-common")
unsignedCompile sourceSets.main.output
}
compileKotlinCommon {
@@ -47,6 +54,14 @@ compileKotlinCommon {
}
}
compileUnsignedKotlinCommon {
kotlinOptions {
freeCompilerArgs += [
"-XXLanguage:+InlineClasses"
]
}
}
kotlin.experimental.coroutines 'enable'