From d08570b8a8015adb9a46ed9abc08fd693d70e0cb Mon Sep 17 00:00:00 2001 From: ligee Date: Thu, 2 Jul 2015 15:33:11 +0200 Subject: [PATCH] Adding new target - embeddable compiler (after jarjar), using it in the gradle plugin (cherry picked from commit bf4b26f) --- build.xml | 10 ++ .../kotlin-gradle-subplugin-example/pom.xml | 2 +- libraries/pom.xml | 1 + .../tools/kotlin-compiler-embeddable/pom.xml | 91 +++++++++++++++++++ .../tools/kotlin-gradle-plugin-core/pom.xml | 2 +- 5 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 libraries/tools/kotlin-compiler-embeddable/pom.xml diff --git a/build.xml b/build.xml index f3478978e65..cc882df6aca 100644 --- a/build.xml +++ b/build.xml @@ -534,6 +534,16 @@ + + + + + + + + + + diff --git a/libraries/examples/kotlin-gradle-subplugin-example/pom.xml b/libraries/examples/kotlin-gradle-subplugin-example/pom.xml index d2553cece8f..aed881a7690 100644 --- a/libraries/examples/kotlin-gradle-subplugin-example/pom.xml +++ b/libraries/examples/kotlin-gradle-subplugin-example/pom.xml @@ -41,7 +41,7 @@ org.jetbrains.kotlin - kotlin-compiler + kotlin-compiler-embeddable ${project.version} provided diff --git a/libraries/pom.xml b/libraries/pom.xml index c497fef5835..d2047e03b5c 100644 --- a/libraries/pom.xml +++ b/libraries/pom.xml @@ -72,6 +72,7 @@ tools/kotlin-compiler + tools/kotlin-compiler-embeddable tools/kotlin-jdk-annotations tools/kotlin-android-sdk-annotations tools/kotlin-maven-plugin diff --git a/libraries/tools/kotlin-compiler-embeddable/pom.xml b/libraries/tools/kotlin-compiler-embeddable/pom.xml new file mode 100644 index 00000000000..7a00b991c88 --- /dev/null +++ b/libraries/tools/kotlin-compiler-embeddable/pom.xml @@ -0,0 +1,91 @@ + + + + 4.0.0 + + 1.4.1 + 3.0.4 + + + + org.jetbrains.kotlin + kotlin-project + 0.1-SNAPSHOT + ../../pom.xml + + + kotlin-compiler-embeddable + jar + + the Kotlin compiler embeddable + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.7 + + + attach-artifacts + compile + + attach-artifact + + + + + ${kotlin-dist}/kotlin-compiler-sources.jar + jar + sources + + + ${kotlin-dist}/kotlin-compiler-javadoc.jar + jar + javadoc + + + + + + + attach-empty-javadoc + prepare-package + + attach-artifact + + + true + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + copy-jar + compile + + + + + + + run + + + + + + + + diff --git a/libraries/tools/kotlin-gradle-plugin-core/pom.xml b/libraries/tools/kotlin-gradle-plugin-core/pom.xml index 8636d5d7c2a..62c431995ac 100644 --- a/libraries/tools/kotlin-gradle-plugin-core/pom.xml +++ b/libraries/tools/kotlin-gradle-plugin-core/pom.xml @@ -44,7 +44,7 @@ org.jetbrains.kotlin - kotlin-compiler + kotlin-compiler-embeddable ${project.version}