Palantir Java Format does not work with latest 7.0.0 spotless plugin
- Langage dominant
- Java
- Étoiles
- 5.6k
- Forks
- 559
- Merge moyen
- 1 j 14 h
- PR mergées (30 j)
- 43
Description
## 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)'
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire l’échec avec Gradle 8.11.1, la dernière version de Spotless et la configuration palantirJavaFormat() affichée. Suivez les erreurs de création des tâches ':spotlessApply' et ':spotlessJavaApply' autour de FormatterStep.createLazy ; le travail est considéré comme terminé lorsque la configuration est créée et exécutée avec succès, mais qu’aucun reproducer public n’est fourni.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100