cedric
05/29/2017, 5:11 PMrunBefore=compile
will docedric
05/29/2017, 5:12 PMethauvin
05/29/2017, 5:12 PMethauvin
05/29/2017, 5:12 PMcedric
05/29/2017, 5:12 PMethauvin
05/29/2017, 5:12 PMethauvin
05/29/2017, 5:13 PMalwaysRunBefore
😉cedric
05/29/2017, 5:13 PMreverseDependsOn
ethauvin
05/29/2017, 5:13 PMethauvin
05/29/2017, 5:14 PMreverseDependsOn=listOf('compile')
ethauvin
05/29/2017, 5:15 PM./kobaltw assemble
and my task will run?cedric
05/29/2017, 5:15 PMethauvin
05/29/2017, 5:16 PMcedric
05/29/2017, 5:16 PMcedric
05/29/2017, 5:16 PMethauvin
05/29/2017, 5:17 PMethauvin
05/29/2017, 5:19 PMmaven local
plugin, it does everything in init
and is never called directly.ethauvin
05/29/2017, 5:20 PMethauvin
05/29/2017, 5:20 PMethauvin
05/29/2017, 7:42 PMethauvin
05/29/2017, 7:42 PMoverride fun apply(project: Project, context: KobaltContext) {
super.apply(project, context)
taskContributor.addVariantTasks(this, project, context, "semver", group = "other",
reverseDependsOn = listOf("compile"), runTask = { version(project) })
}
ethauvin
05/29/2017, 7:43 PMcedric
05/29/2017, 7:55 PMethauvin
05/29/2017, 8:01 PMethauvin
05/29/2017, 8:34 PMethauvin
05/29/2017, 8:35 PM$ k run
__ __ __ __ __
/ //_/ ____ / /_ ____ _ / / / /_
/ ,< / __ \ / __ \ / __ `/ / / / __/
/ /| | / /_/ / / /_/ // /_/ / / / / /_
/_/ |_| \____/ /_.___/ \__,_/ /_/ \__/ 1.0.86
Regular compilation time: 4433 ms
Parallel build starting
╔══════════════════╗
║ Building example ║
╚══════════════════╝
───── example:compile
───── example:assemble
───── example:run
Hello Kotlin world from Kobalt
ethauvin
05/29/2017, 8:35 PM$ k version run
__ __ __ __ __
/ //_/ ____ / /_ ____ _ / / / /_
/ ,< / __ \ / __ \ / __ `/ / / / __/
/ /| | / /_/ / / /_/ // /_/ / / / / /_
/_/ |_| \____/ /_.___/ \__,_/ /_/ \__/ 1.0.86
Regular compilation time: 5487 ms
Parallel build starting
╔══════════════════╗
║ Building example ║
╚══════════════════╝
───── example:compile
───── example:version
Version set to: 2.17.52
───── example:assemble
───── example:run
ERROR
Error: Could not find or load main class com.example.MainKt
ethauvin
05/29/2017, 8:36 PM$ k clean version run
_ __ _ _ _
| |/ / ___ | |__ __ _ | | | |_
| ' / / _ \ | '_ \ / _` | | | | __|
| . \ | (_) | | |_) | | (_| | | | | |_
|_|\_\ \___/ |_.__/ \__,_| |_| \__| 1.0.86
Regular compilation time: 4579 ms
Parallel build starting
╔══════════════════╗
║ Building example ║
╚══════════════════╝
───── example:clean
───── example:version
Version set to: 2.17.52
───── example:compile
Kotlin 1.1.2 compiling 1 file
Kotlin incremental compilation is enabled
Incremental compilation time: 1923 ms
───── example:assemble
Created .\kobaltBuild\libs\example-0.1.jar
───── example:run
ERROR
Error: Could not find or load main class com.example.MainKt
ethauvin
05/29/2017, 8:37 PMethauvin
05/29/2017, 8:40 PMjava -classpath kobaltBuild/libs/example-2.17.52.jar;C:/Users/erik/.kobalt/cache/org/jetbrains/kotlin/kotlin-runtime/1.1.2/kotlin-runtime-1.1.2.jar;C:/Users/erik/.kobalt/cache/org/jetbrains/kotlin/kotlin-stdlib/1.1.2/kotlin-stdlib-1.1.2.jar com.example.MainKt
I suspect example-2.17.52.jar
doesn't exists.