Skip to content

checkLicense 3.0.1 requires Java 17 or higher yet the build targets Java 8 #365

@carlosame

Description

@carlosame

Running checkLicense with License-Report 3.0.1 (and Gradle wrapper 8.14.3) requires Java 17 or higher (breaks with Java 11):

$ ./gradlew checkLicense

[Incubating] Problems report is available at: file:///C:/***/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.UnsupportedClassVersionError: com/github/jk1/license/LicenseReportPlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
> com/github/jk1/license/LicenseReportPlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.14.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 10s
8 actionable tasks: 2 executed, 6 up-to-date

You can also see the problem in this CI run: https://github.com/css4j/echosvg/actions/runs/20645420472/job/59282570537#step:4:39

This Java 17 requirement isn't listed anywhere and the build appears to target Java 8:

tasks.withType(AbstractCompile).configureEach {
options.release = 8
}

What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions