palantir / palantir/palantir-java-format

Build the current develop branch failed with 2 failures by gradle 8.14.3 using OpenJDK 17/21/23/24 on Windows 10 Pro 64 bit

Open
#1,381 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
908
Forks
101
Avg merge
1d 3h
Merged PRs (30d)
19

Description

Cannot build current development branch on Windows 10 Pro 64 bit machine.

The following commands

>git clone git@github.com:palantir/palantir-java-format.git
>cd palantir-java-format
>git checkout develop
>set JAVA_HOME=C:\Program Files\BellSoft\LibericaJDK-17
>set PATH=%JAVA_HOME%\bin;%PATH%
>gradlew.bat :idea-plugin:build 

failed with:

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.14.3/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 

[Incubating] Problems report is available at: file:///D:/java/palantir-java-format/build/reports/problems/problems-report.html

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file 'D:\java\palantir-java-format\build.gradle' line: 72

* What went wrong:
A problem occurred evaluating root project 'palantir-java-format-parent'.
> The value for this property is final and cannot be changed any further.

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring root project 'palantir-java-format-parent'.
> Failed to calculate the value of task ':eclipse_plugin:compileJava' property 'javaCompiler'.
   > Cannot query the value of this property because it has no value available.

* 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 11s

What is wrong?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Windows failure with gradlew.bat :idea-plugin:build and inspect build.gradle around line 72. Trace how the root project properties and :eclipse_plugin:compileJava configure their Java compiler values under Gradle 8.14.3. Done means the reported build completes successfully on the stated JDK and Windows setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.