allure-framework/allure-java

๐Ÿž: Two javac versions used in project do not work well on MacOS M1

atais opened this issue ยท 0 comments

What happened?

I try to build with either 17 or 21 on my MacOS with jenv

* What went wrong:
Could not determine the dependencies of task ':allure-jooq:compileJava'.
> Could not resolve all dependencies for configuration ':allure-jooq:compileClasspath'.
   > Failed to calculate the value of task ':allure-jooq:compileTestJava' property 'javaCompiler'.
      > No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific} for MAC_OS on aarch64.
         > No locally installed toolchains match and toolchain download repositories have not been configured.

If i select 17 it will print missing 21 and the other way round.
It's because in main you set javac to 21:

https://github.com/allure-framework/allure-java/blob/main/build.gradle.kts#L30

but jooq module uses 17

https://github.com/allure-framework/allure-java/blob/main/allure-jooq/build.gradle.kts#L23

which way should it be? all 21 or 17?

Also I cant select allure-jooq in the integration dropdown during bug creation

What Allure Integration are you using?

allure-testng

What version of Allure Integration you are using?

2.22.3

What version of Allure Report you are using?

2.22.3

Code of Conduct

  • I agree to follow this project's Code of Conduct