Fixed extension handling of kotlin features

This commit is contained in:
Alexander Nozik 2019-09-14 19:02:50 +03:00
parent 321180dc97
commit 29ab02e9dc

View File

@ -17,7 +17,7 @@ open class ScientifikExtension {
fun Project.withSerialization() {
apply(plugin = "kotlinx-serialization")
_serialization = true
serialization = true
//recursively apply to all subprojecs
subprojects{
this.scientifik.apply{
@ -26,11 +26,18 @@ open class ScientifikExtension {
}
}
private var _serialization = false
var serialization = false
private set
fun Project.withIO(){
io = true
subprojects{
withIO()
}
}
var io = false
private set
}
internal val Project.scientifik: ScientifikExtension