Today I started a new JDK 11 project with Gradle 5.0 (using the Gradle Wrapper) and created a basic build script:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.gradle:osdetector-gradle-plugin:1.6.0'
}
}
plugins {
id 'java'
}
apply plugin: 'com.google.osdetector'
ext.platform = osdetector.os == 'osx' ? 'mac' : osdetector.os == 'windows' ? 'win' : osdetector.os
version = '0.1.0'
repositories {
mavenCentral()
}
dependencies {
compile "org.openjfx:javafx-graphics:11:$platform"
}
This - rather basic - build script results in the error
'compile' in 'org.gradle.api.artifacts.dsl.DependencyHandler' cannot be applied to '(groovy.lang.GString)'
Is that a JDK 11, a Gradle 5.0 or a user error? I've never seen that before.
According to JetBrains support this is a known bug and will be fixed in 2018.3.1
.
See: https://youtrack.jetbrains.com/issue/IDEA-203393
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With