mcpiroman
07/10/2021, 11:23 AM> Task :libraries:tools:mutability-annotations-compat:compileJava FAILED
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.
on most recent master branch (de22a467a12714505a6f66f0a01bd7d7fc0ca9e2). Is it a know problem or something on my side?scaventz
07/10/2021, 1:49 PMmcpiroman
07/10/2021, 1:53 PMproject.updateJvmTarget("1.6")
I changed that to 1.8 and so far the compilation proceeds (it has not finished yet).mcpiroman
07/11/2021, 5:14 PMudalov
mcpiroman
07/12/2021, 3:41 PMudalov
tapchicoma
07/12/2021, 5:24 PMmcpiroman
07/12/2021, 5:29 PMproject.updateJvmTarget("1.6")
to project.updateJvmTarget("1.8")
for the build to pass.tapchicoma
07/12/2021, 5:30 PMkotlin.build.isObsoleteJdkOverrideEnabled=true
to the local.properties
filemcpiroman
07/12/2021, 5:49 PMJDK_16
and JDK_17
). I want to be able to build the whole project.
Btw. while te assemble
task passes, when I run `compilerTest`I get an error about unsupported java version 52.0, sth. like that.
So maybe I have not configured something correctly?tapchicoma
07/12/2021, 5:50 PM./gradlew javaToolchains
task list your JDK 1.6 and 1.7?mcpiroman
07/12/2021, 6:19 PM+ Oracle JDK 1.7.0_80
| Location: C:\Program Files\Java\jdk1.7.0_80
| Language Version: 7
| Vendor: Oracle
| Is JDK: true
| Detected by: Windows Registry
+ Sun Microsystems Inc. JDK 1.6.0_45
| Location: C:\Program Files\Java\jdk1.6.0_45
| Language Version: 6
| Vendor: Sun Microsystems Inc.
| Is JDK: true
| Detected by: Windows Registry
tapchicoma
07/12/2021, 6:56 PMmcpiroman
07/12/2021, 7:03 PMcompilerTest
the mentioned error does not occur. Instead there expected failing tests regarding my changes in the compiler. (FYI I have rebased the repo last week.)
So it may be that the issue is gone, or that gradle just reordered some tasks or something and I will hit the same thing later, I can't say until I fix the tests.tapchicoma
07/12/2021, 7:06 PM6
mcpiroman
07/12/2021, 7:08 PMtapchicoma
07/12/2021, 7:08 PMtapchicoma
07/12/2021, 7:08 PMmcpiroman
07/12/2021, 7:11 PMmcpiroman
07/13/2021, 1:24 PMcompilerTest
from Intellij, I get:
> Task :kotlin-scripting-jvm:test
FATAL ERROR in native method: processing of -javaagent failed
java.lang.UnsupportedClassVersionError: kotlinx/coroutines/debug/AgentPremain : Unsupported major.minor version 52.0
mcpiroman
07/13/2021, 1:25 PMmcpiroman
07/13/2021, 2:02 PMtapchicoma
07/13/2021, 5:29 PMjava.lang.UnsupportedClassVersionError: kotlinx/coroutines/debug/AgentPremain : Unsupported major.minor version 52.0
message - error in kotlinx.coroutines
artifact that located in the separate repository that was not yet migrated to the Gradle toolchain feature. Better to use JDK 11 to compile it.