← All tasks
javaapache/logging-log4j2 #3754Not a task: already works

log4j 2.25.0 cannot (directly) be used with Gradle on Java 8

envgap__apache__logging-log4j2-3754

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
cab2047bb7477718783b7079b934c37b3a81280c
Manifest
log4j-parent/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

apache/logging-log4j2 #3754 · read the original issue
## Description

log4j 2.25.0's dependency `com.github.spotbugs:spotbugs-annotations:4.9.3` is only compatible with JVM runtime version 11+

## Configuration

**Version:** 2.25.0

**Operating system:** Linux 6.14.6-2-MANJARO

**JDK:** Oracle Java 1.8.0

## Logs

from a `./gradlew build` with a `org.apache.logging.log4j:log4j-api:2.25.0` dependency using Java 8:

```
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve com.github.spotbugs:spotbugs-annotations:4.9.3.
     Required by:
         root project : > org.apache.logging.log4j:log4j-api:2.25.0
      > Dependency resolution is looking for a library compatible with JVM runtime version 8, but 'com.github.spotbugs:spotbugs-annotations:4.9.3' is only compatible with JVM runtime version 11 or newer.
```

## Reproduction

https://github.com/hankem/log4j-2.25.0-with-Java-8

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]