> Am 10.11.2022 um 16:00 schrieb 'Jesse Glick' via Jenkins Developers 
> <[email protected]>:
> 
> On Thu, Nov 10, 2022 at 2:03 AM Ullrich Hafner <[email protected] 
> <mailto:[email protected]>> wrote:
>> This causes a failure of:
>> 
>> [ERROR] Failed to execute goal 
>> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-cli) 
>> on project checks-api: Execution default-cli of goal 
>> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test failed: 
>> org.junit.platform.commons.JUnitException: TestEngine with ID 'archunit' 
>> failed to discover tests: ExceptionInInitializerError: class 
>> com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule cannot be cast to 
>> class com.tngtech.archunit.lang.syntax.elements.ClassesShouldConjunction 
>> (com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule and 
>> com.tngtech.archunit.lang.syntax.elements.ClassesShouldConjunction are in 
>> unnamed module of loader 
>> org.apache.maven.surefire.booter.IsolatedClassLoader @5cf39df6) -> [Help 1]
> 
> I just tried `mvn -f checks-api-plugin clean verify` locally using JDK 11 and 
> it passed.
> 

The plugin compiles with JDK11 and JDK17 fine on my machine as well. 

It is just my BOM PR that fails (also locally when I start it with 
PLUGINS=checks-api bash local-test.sh)

It seems to set the target JDK to 11 which is not what I want, the target 
should still be JDK8 (at least for now). 

>> Is there a toggle to define in the BOM that the plugin build is not ready 
>> for JDK11?
> 
> No, I think all plugins are expected to be buildable on JDK 11 even if their 
> runtime baseline remains Java 8.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1mpAeos5ZC2%3D%3DiFpCXta6z-Dc9-PT7pY%3D50cb-wA8fAQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1mpAeos5ZC2%3D%3DiFpCXta6z-Dc9-PT7pY%3D50cb-wA8fAQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CFC23496-5A16-4DC5-82ED-EF80B2166CCA%40gmail.com.

Reply via email to