jeggy
06/16/2021, 1:34 PMjeggy
06/16/2021, 1:35 PMdefault-jre , but can't figure out how get intellij to use thisjeggy
06/16/2021, 1:40 PM./gradlew build , works without any problems. But I would like IntelliJ to be fully compatable with my projectColton Idle
06/16/2021, 1:42 PMjeggy
06/16/2021, 1:47 PMjeggy
06/16/2021, 1:48 PMecho $JAVA_HOME returns nothing when running in ubuntu terminalColton Idle
06/16/2021, 1:50 PMjeggy
06/16/2021, 1:51 PMcompileKotlin { kotlinOptions.jvmTarget = "15" }
compileTestKotlin { kotlinOptions.jvmTarget = "15" }
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(15))
}
}
But I don't think intellij uses this for anything?jeggy
06/16/2021, 1:52 PMColton Idle
06/16/2021, 1:52 PMColton Idle
06/16/2021, 1:53 PMjeggy
06/16/2021, 1:55 PMjeggy
06/16/2021, 1:55 PMColton Idle
06/16/2021, 1:55 PMjeggy
06/16/2021, 1:56 PM./gradlew build which then did downloaded all of the required stuff, then when opening that gradle jvm settings page, it now gave me the option to select WSL versionColton Idle
06/16/2021, 1:57 PMColton Idle
06/16/2021, 1:57 PMjeggy
06/16/2021, 1:57 PMjeggy
06/16/2021, 1:57 PMjeggy
06/16/2021, 2:13 PMProject Structure > Project > Project SDK is using a (WSL) version.
• Settings > Build > Build Tools > Gradle has:
◦ A WSL path for Gradle user home
◦ Use Gradle from is set to gradle-wrapper.properties file
◦ Gradle JVM is using a (WSL) version
And if intellij can't find any WSL versions, just run ./gradlew build. And if this command doesn't work, then you can always google it 😛jeggy
06/16/2021, 2:29 PMColton Idle
06/16/2021, 2:37 PMjeggy
06/16/2021, 2:38 PMjeggy
06/16/2021, 2:39 PM