21.1.2 #292
abashev
announced in
Announcements
21.1.2
#292
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 formatter's output is the same as 21.1.1's, so this release needs no reformatting run. The Gradle plugin now formats Android modules, and the command line tool installs with Homebrew, Scoop, apt and mise.
Gradle plugin
formatDiffand the Spotless step now format the Java files of Android modules: those withcom.android.application,com.android.library,com.android.dynamic-featureorcom.android.test, from Android Gradle plugin 9.1 on. Up to 21.1.1 the plugin did nothing in a module without thejavaplugin: there was noformatDiff, andspotlessCheckpassed whatever the files held. Both cover thejavadirectories of every Android source set, and Java files in thekotlindirectories are left out. The plugin reads the source sets from the build's own Android Gradle plugin and brings none of its own (#284, #288).Command line
open-java-format_21.1.2_amd64.debandopen-java-format_21.1.2_arm64.deb, signed and inchecksums_sha256.txtlike every other file. They install/usr/bin/open-java-formatand need glibc 2.34 or later: Ubuntu 22.04, Debian 12 or newer (#289).Formatter
Thanks
To Liam Miller-Cushon of google-java-format, whose change to reading comments, google-java-format#1546, is ported here.
This discussion was created from the release 21.1.2.
All reactions