Pill: Introduce pill{} extension to set extended Pill configuration

Also introduce the flavor concept which allows to specify what part of Kotlin project should be imported.
This commit is contained in:
Yan Zhulanow
2018-04-20 18:45:23 +03:00
parent a57869993d
commit ba5836d666
19 changed files with 133 additions and 56 deletions
@@ -3,6 +3,7 @@ import java.io.File
plugins {
base
id("pill-configurable")
}
val baseProtobuf by configurations.creating
@@ -18,7 +19,9 @@ val renamedSources = "$buildDir/renamedSrc/"
val outputJarsPath = "$buildDir/libs"
val artifactBaseName = "protobuf-java-relocated"
val jpsLibraryPath by extra(outputJarsPath)
pill {
libraryPath = File(outputJarsPath)
}
setProperty("archivesBaseName", "$artifactBaseName-$protobufVersion")