Draget
11/06/2020, 8:07 PMBig Chungus
11/06/2020, 8:08 PMBig Chungus
11/06/2020, 8:08 PMaltavir
11/06/2020, 8:09 PMDraget
11/06/2020, 8:09 PMkotlin("jvm") version "1.4.10"
as this was what the IDEA wizard suggested to me, tho I also tried 1.4.0 as in the example.Big Chungus
11/06/2020, 8:09 PMaltavir
11/06/2020, 8:10 PMDraget
11/06/2020, 8:10 PMBig Chungus
11/06/2020, 8:10 PMaltavir
11/06/2020, 8:11 PMDraget
11/06/2020, 8:11 PMkotlin.code.style=official
settings.gradle.kts:
rootProject.name = "JetpackSnow"
pluginManagement {
repositories {
gradlePluginPortal()
maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
}
}
Draget
11/06/2020, 8:21 PM./gradlew tasks
with the example files, results in
* What went wrong:
Execution failed for task ':tasks'.
> Could not create task ':run'.
> 'org.gradle.api.provider.Property org.gradle.api.tasks.JavaExec.getMainClass()'
sighBig Chungus
11/06/2020, 8:25 PMBig Chungus
11/06/2020, 8:26 PMDraget
11/06/2020, 8:28 PMBig Chungus
11/06/2020, 8:29 PMBig Chungus
11/06/2020, 8:29 PMDraget
11/06/2020, 8:29 PMBig Chungus
11/06/2020, 8:30 PMBig Chungus
11/06/2020, 8:31 PMDraget
11/06/2020, 8:31 PMBig Chungus
11/06/2020, 8:32 PMDraget
11/06/2020, 8:39 PMkotlinOptions.useIR = true
to my build.gradle.kts. The document implies, that this is auto-enabled when using the plugin.
Never the less, my IDEA also claims that kotlinOptions is an unresolved reference. I am struggling to grasp how those things play together in gradle.olonho
11/06/2020, 8:41 PMBig Chungus
11/06/2020, 8:41 PMDraget
11/06/2020, 8:48 PMBig Chungus
11/06/2020, 8:49 PMBig Chungus
11/06/2020, 8:50 PMDraget
11/06/2020, 8:51 PMBig Chungus
11/06/2020, 8:51 PMAnimesh Sahu
11/07/2020, 4:53 AMAnimesh Sahu
11/07/2020, 4:55 AMtasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
useIR = true
freeCompilerArgs += listOf("-Xuse-ir")
}
}
Project builds and runs fine, but the intellij linter is somehow unable to detect them (from gradle) and shows red lines below. As a temporary fix you can pass -Xuse-ir
in ProjectStructure -> Facets manually.