user
12/13/2017, 3:36 PM4.4
) script:
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath("org.junit.platform:junit-platform-gradle-plugin:1.0.2")
}
}
plugins {
id("org.gradle.idea")
id("org.jetbrains.kotlin.jvm") version "1.1.61"
}
apply {
plugin("org.junit.platform.gradle.plugin")
}
...and I'm unable to "upgrade" Koltin to 1.2
(just by changing the version number to it). How is that working for you?Czar
12/13/2017, 3:39 PM"org.junit.platform.gradle.plugin"
to plugins {}
block)
2) get rid of apply { plugin("") }
3) in plugins
block set kotlin's version to "1.2.0"
instead of "1.1.61"
Czar
12/13/2017, 3:42 PM"org.junit.platform.gradle.plugin"
is not available at gradle plugins 😞, in that case just change "1.1.61"
to "1.2.0"
should work. If it doesn't I need more info: how does it not work?mkobit
12/13/2017, 3:44 PMkartikpatodi
12/13/2017, 3:47 PMkartikpatodi
12/13/2017, 3:52 PMjunit-test-suite
in plugins used for?kartikpatodi
12/13/2017, 5:05 PMbuild.gradle
to build.gradle.kts
can anyone tell me howw do I implement theese
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
gildor
12/13/2017, 5:09 PMtasks.withType<KotlinJvmCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
napperley
12/13/2017, 10:35 PMnapperley
12/13/2017, 10:35 PMDmitry Kandalov
12/13/2017, 11:02 PMMarcel Overdijk
12/14/2017, 6:06 PMMarcel Overdijk
12/14/2017, 6:07 PMplugins {
val kotlinVersion = "1.2.0"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
Marcel Overdijk
12/14/2017, 6:07 PM1.1.51
should I define the version in the buildSrc/build.gradle.kts
explicitly? and yes how?Marcel Overdijk
12/14/2017, 6:08 PMMarcel Overdijk
12/14/2017, 6:08 PMplugins {
`kotlin-dsl`
}
val assertjVersion = "3.8.0"
val h2Version = "1.4.196"
val snakeyamlVersion = "1.18"
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile("com.h2database:h2:$h2Version")
compile("org.assertj:assertj-core:$assertjVersion")
compile("org.yaml:snakeyaml:$snakeyamlVersion")
}
bamboo
12/14/2017, 6:09 PMbuildSrc
is fixed to be the same as the embedded Kotlin version because that’s the version build scripts are evaluated againstMarcel Overdijk
12/14/2017, 6:10 PMcompile
declarations stating: unresolved referencebamboo
12/14/2017, 6:10 PMMarcel Overdijk
12/14/2017, 6:10 PMbamboo
12/14/2017, 6:11 PMbamboo
12/14/2017, 6:11 PMMarcel Overdijk
12/14/2017, 6:12 PMMarcel Overdijk
12/14/2017, 6:12 PM1.1.51
bamboo
12/14/2017, 6:13 PM1.1.6x
because of a bug in the distribution (which has since been workaround)Marcel Overdijk
12/14/2017, 6:13 PM1.2.x
?bamboo
12/14/2017, 6:14 PM1.2.x
unless we hear enough complaints that we shouldn’t do itbamboo
12/14/2017, 6:15 PM1.2.x
Marcel Overdijk
12/14/2017, 6:17 PMcompile
declaration...Marcel Overdijk
12/14/2017, 6:17 PM