Commit Graph

11 Commits

Author SHA1 Message Date
Major- 7e6039356d Throw custom exception on missing plugin dependency 2018-08-21 16:09:23 +01:00
Gary Tierney 0651d535fa Update to Kotlin 1.60 and Gradle 4.9
Removes the dependency on legacy script compilation and now relies on script
discovery.  In addition, the Gradle build scripts were refactored and updated
to be compatible with Gradle 5.0 and make use of the new java-library
configurations.
2018-08-19 19:26:51 +01:00
Gary Tierney d8116478d4 Remove dependency on embedded kotlin compiler
This is a large change that significantly simplifies the plugin build system by
having the kotlinc handle everything related to script compilation.  Since we
no longer use package name rewriting, the "packageName" option has been dropped
from the gradle script API and has been removed from existing plugins.

In addition to simplifying the build system, it should also significantly speed
up build times.  Previously we ran 2 build processes for every plugin and
didn't have fully working incremental compilation for scripts compared to 1
build process with built-in incremental compilation.

There were also some random pieces of code that referenced kotlinc directly, so
those have either been removed or refactored out.
2018-03-27 22:35:05 +01:00
Gary Tierney 1f33619ac6 Add source information to remapped scripts 2017-09-17 19:36:58 +01:00
Gary Tierney 89516dab63 Rewrite package names in compiled script files 2017-09-17 18:42:19 +01:00
Gary Tierney a60cc82650 Use main sourcset output dir for scripts 2017-09-16 21:54:57 +01:00
Gary Tierney b4d951c7cc Fix incremental script compilation 2017-09-16 21:49:45 +01:00
Gary Tierney edcb72b474 Fix plugin test running with new gradle modules 2017-09-16 20:40:17 +01:00
Gary Tierney 36282cf81e Remove plugins.gradle and factor into common extension 2017-09-16 18:49:06 +01:00
Gary Tierney b32b98eb86 Share kotlin version config between buildSrc and project (#353)
* Share kotlin version config between buildSrc and project
* Use built-in Kotlin MessageCollector
2017-09-16 02:39:34 +01:00
Gary Tierney adaaae2129 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.
2017-06-18 21:13:30 +01:00