21.0.2 #203
abashev
announced in
Announcements
21.0.2
#203
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The output is the same as 21.0.1's, so this release needs no reformatting run. It brings a playground that formats Java in the browser, a Gradle plugin that carries the formatter inside it, and the native binary in IntelliJ IDEA for any project.
Playground
open-java-format-wasm-21.0.2.zip, signed and listed inchecksums_sha256.txtlike every other file. It runs the playground, which formats Java in the browser and sends nothing anywhere. On all 915 test cases its output matches the runnable jar's byte for byte (#21, #196).Gradle plugin
java. The jars are extracted on first use into~/.gradle/open-java-format-caches/, and the plugin jar grows from 64 KB to 6.3 MB (#20, #198).palantirJavaFormatin the root project, as before. It and the native binary now resolve through the repositories of each project that formats: a build that declares repositories only in the root project has to declare them where it formats too (#198).formatDiffand the Spotless step work with Gradle's configuration cache. Up to 21.0.1 they failed with it on (#193, #195).spotlessJavais taken from the build cache only for the same sources, formatter and Spotless settings, and only when it formatted. The cache key holds across directories and machines (#198).--add-exportsflags,spotlessJavafails and names them. It used to record a lint of every file,NoClassDefFoundError: Could not initialize class com.palantir.javaformat.java.ImportOrderer, which the build cache kept handing back after the flags were added (#198).openjavaformat.native.formatterdecides only how the build runs the formatter. It no longer switches on the native binary in IntelliJ IDEA: tick Use native binary there once (#197).NativePalantirJavaFormatStep, which could never run, is gone (#194, #198).IntelliJ IDEA plugin
idea.logsays which formatter runs (#197).Library
Style.PALANTIRis back as a deprecated alias ofStyle.OJFand formats the same, so code that names it, or looks it up withStyle.valueOf("PALANTIR"), keeps working after the change of coordinates (#200).org.jspecify:jspecifyinstead ofcom.google.code.findbugs:jsr305(#201).Thanks
To Guillaume Laforge, for bringing back
Style.PALANTIR, and to cobr123, whose open-java-format-wasm-demo showed that the formatter compiles to WebAssembly and was offered for the site.This discussion was created from the release 21.0.2.
All reactions