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:
@@ -1,5 +1,6 @@
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'jps-compatible'
|
||||
|
||||
configureJvmProject(project)
|
||||
configurePublishing(project)
|
||||
@@ -8,6 +9,10 @@ repositories {
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
pill {
|
||||
variant = "FULL"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':kotlin-stdlib')
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ apply plugin: 'java-gradle-plugin'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'groovy'
|
||||
apply plugin: 'org.jetbrains.dokka'
|
||||
apply plugin: 'jps-compatible'
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
@@ -26,6 +27,10 @@ configurations {
|
||||
agp25CompileOnly
|
||||
}
|
||||
|
||||
pill {
|
||||
variant = "FULL"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':kotlin-gradle-plugin-api')
|
||||
compileOnly project(':compiler')
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
description 'Kotlin Script Runtime'
|
||||
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'pill-configurable'
|
||||
|
||||
configureJvm6Project(project)
|
||||
configureDist(project)
|
||||
configurePublishing(project)
|
||||
|
||||
project.ext["jpsLibraryPath"] = rootProject.distLibDir
|
||||
pill {
|
||||
importAsLibrary = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly project(path: ':kotlin-stdlib', configuration: 'distJar')
|
||||
|
||||
Reference in New Issue
Block a user