Generate build config for the versions like
|
googleJavaFormatCompileOnly 'com.google.googlejavaformat:google-java-format:1.28.0' |
And refer to the generated config for
|
.add(17, "1.28.0"); // default version |
There is an example like https://github.com/vanniktech/gradle-maven-publish-plugin/blob/d0e50fec7a07ef91fde62ae5cb0e4b4b4769d797/plugin/build.gradle.kts#L35-L110
This should be stacked on #2704.
Generate build config for the versions like
spotless/lib/build.gradle
Line 99 in a0ac600
And refer to the generated config for
spotless/lib/src/main/java/com/diffplug/spotless/java/GoogleJavaFormatStep.java
Line 124 in 8d4cd28
There is an example like https://github.com/vanniktech/gradle-maven-publish-plugin/blob/d0e50fec7a07ef91fde62ae5cb0e4b4b4769d797/plugin/build.gradle.kts#L35-L110
This should be stacked on #2704.