diffplug / diffplug/spotless

Palantir Java Format does not work with latest 7.0.0 spotless plugin

オープン
#2,385 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug-unconfirmed
主要言語
Java
スター
5.6k
フォーク
559
平均マージ
1日 14時間
マージ済み PR(30日)
43

説明

## Summary of Problem:

Encountered a NoSuchMethodError when trying to use the palantirJavaFormat() method in the Spotless configuration. The error suggests a version mismatch or compatibility issue between the Spotless plugin and the Palantir Java Format library.

## Gradle Version:

8.11.1

## Spotless Version:

Using latest.release in the build script, which resolves to the latest stable version at the time of the build.

## Operating System and Version: macOS Monterey 12.6

## Spotless Configuration Block:

```
groovy
spotless {
java {
palantirJavaFormat()
removeUnusedImports()
target project.fileTree(project.projectDir) {
include '**/*.java'
excludes.each {
exclude it
}
}
}
}
```

## Link to Public Git Repo:

Unfortunately, I do not have a public repository that reproduces the problem at this time.

## Console Errors:

```
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':spotlessApply'.
> Could not create task ':spotlessJavaApply'.
> Could not create task ':spotlessJava'.
> 'com.diffplug.spotless.FormatterStep com.diffplug.spotless.FormatterStep.createLazy(java.lang.String, com.diffplug.spotless.ThrowingEx$Supplier, com.diffplug.spotless.ThrowingEx$Function)'
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Gradle 8.11.1、最新の Spotless リリース、および示されている palantirJavaFormat() 構成を使って失敗を再現します。FormatterStep.createLazy 周辺での ':spotlessApply' および ':spotlessJavaApply' タスク作成エラーを追跡します。構成が正常に作成されて実行されるが、公開用の reproducer は提供されない状態を完了とします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。