Refactor the plugin compile task for performance

Integrates the plugin script compilation task with Gradle so we no
longer need to start a new instance of the JVM for each set of plugin
scripts that we want to compile.
This commit is contained in:
Gary Tierney
2017-06-18 21:12:39 +01:00
parent df305bd775
commit adaaae2129
4 changed files with 244 additions and 16 deletions
+26
View File
@@ -0,0 +1,26 @@
apply plugin: 'kotlin'
buildscript {
ext {
kotlinVersion = '1.1.2-4'
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
repositories {
mavenLocal()
maven { url "https://repo.maven.apache.org/maven2" }
}
dependencies {
compile gradleApi()
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jre8', version: "$kotlinVersion"
compile group: 'org.jetbrains.kotlin', name: 'kotlin-compiler-embeddable', version: "$kotlinVersion"
}