This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assuming Kotlin plugin is applied... | |
// Run as: ./gradlew kotlinRepl --console plain --no-daemon | |
val kotlinRepl by tasks.creating { | |
description = "Starts Kotlin REPL with compiled main classes and runtime classpath" | |
val mainSourceSet = java.sourceSets["main"] | |
dependsOn(mainSourceSet.output) | |
doFirst { | |
val buildscriptClasspath = rootProject.buildscript.configurations["classpath"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The 'codenarc' plugin has a configuration with a dynamic Groovy dependency. | |
// This can be different that the actual version you are using. | |
// codenarc - The CodeNarc libraries to be used for this project. | |
// \--- org.codenarc:CodeNarc:0.27.0 | |
// +--- org.gmetrics:GMetrics:0.7 | |
// | +--- org.codehaus.groovy:groovy:[2.1.0,) -> 2.5.0-beta-1 | |
// | +--- org.codehaus.groovy:groovy-xml:[2.1.0,) -> 2.5.0-beta-1 | |
// | | \--- org.codehaus.groovy:groovy:2.5.0-beta-1 | |
// | \--- org.codehaus.groovy:groovy-ant:[2.1.0,) -> 2.5.0-beta-1 | |
// | +--- org.codehaus.groovy:groovy:2.5.0-beta-1 |