Skip to content

Commit 495aa3f

Browse files
committed
Dogfood latest, and disable ratcheting on freshmark so that README stays up-to-date (which allows the plugin-gradle readme to update, lol).
1 parent d7e4dda commit 495aa3f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

gradle/spotless-freshmark.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Action<FreshMarkExtension> freshmarkSetup = {
1818
spotless {
1919
freshmark {
2020
freshmarkSetup.execute(it)
21+
// disable ratchetFrom for freshmark, because we always want to update the readme links
22+
ratchetFrom null
2123
}
2224
}
2325

plugin-gradle/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ output = [
1717
-->
1818
[![Gradle plugin](https://img.shields.io/badge/plugins.gradle.org-com.diffplug.gradle.spotless-blue.svg)](https://plugins.gradle.org/plugin/com.diffplug.gradle.spotless)
1919
[![Maven central](https://img.shields.io/badge/mavencentral-yes-blue.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.diffplug.spotless%22%20AND%20a%3A%22spotless-plugin-gradle%22)
20-
[![Javadoc](https://img.shields.io/badge/javadoc-yes-blue.svg)](https://javadoc.io/doc/com.diffplug.spotless/spotless-plugin-gradle/4.2.1/index.html)
20+
[![Javadoc](https://img.shields.io/badge/javadoc-yes-blue.svg)](https://javadoc.io/doc/com.diffplug.spotless/spotless-plugin-gradle/4.3.0/index.html)
2121
[![License Apache](https://img.shields.io/badge/license-apache-blue.svg)](https://tldrlegal.com/license/apache-license-2.0-(apache-2.0))
22-
[![Changelog](https://img.shields.io/badge/changelog-4.2.1-blue.svg)](CHANGES.md)
22+
[![Changelog](https://img.shields.io/badge/changelog-4.3.0-blue.svg)](CHANGES.md)
2323

2424
[![Circle CI](https://circleci.com/gh/diffplug/spotless/tree/master.svg?style=shield)](https://circleci.com/gh/diffplug/spotless/tree/master)
2525
[![Live chat](https://img.shields.io/badge/gitter-chat-brightgreen.svg)](https://gitter.im/diffplug/spotless)
@@ -80,7 +80,7 @@ spotless {
8080
}
8181
```
8282

83-
Spotless can check and apply formatting to any plain-text file, using simple rules ([javadoc](https://javadoc.io/static/com.diffplug.spotless/spotless-plugin-gradle/4.2.1/com/diffplug/gradle/spotless/FormatExtension.html)) like those above. It also supports more powerful formatters:
83+
Spotless can check and apply formatting to any plain-text file, using simple rules ([javadoc](https://javadoc.io/static/com.diffplug.spotless/spotless-plugin-gradle/4.3.0/com/diffplug/gradle/spotless/FormatExtension.html)) like those above. It also supports more powerful formatters:
8484

8585
* Eclipse's [CDT](#eclipse-cdt) C/C++ code formatter
8686
* Eclipse's java code formatter (including style and import ordering)
@@ -551,7 +551,7 @@ Once a file's license header has a valid year, whether it is a year (`2020`) or
551551
* `2017` -> `2017-2020`
552552
* `2017-2019` -> `2017-2020`
553553

554-
See the [javadoc](https://javadoc.io/static/com.diffplug.spotless/spotless-plugin-gradle/4.2.1/com/diffplug/gradle/spotless/FormatExtension.LicenseHeaderConfig.html) for a complete listing of options.
554+
See the [javadoc](https://javadoc.io/static/com.diffplug.spotless/spotless-plugin-gradle/4.3.0/com/diffplug/gradle/spotless/FormatExtension.LicenseHeaderConfig.html) for a complete listing of options.
555555

556556
### Retroactively populating year range from git history
557557

@@ -603,7 +603,7 @@ spotless {
603603
}
604604
```
605605

606-
If you use `custom` or `customLazy`, you might want to take a look at [this javadoc](https://javadoc.io/static/com.diffplug.spotless/spotless-plugin-gradle/4.2.1/com/diffplug/gradle/spotless/FormatExtension.html#bumpThisNumberIfACustomStepChanges-int-) for a big performance win.
606+
If you use `custom` or `customLazy`, you might want to take a look at [this javadoc](https://javadoc.io/static/com.diffplug.spotless/spotless-plugin-gradle/4.3.0/com/diffplug/gradle/spotless/FormatExtension.html#bumpThisNumberIfACustomStepChanges-int-) for a big performance win.
607607

608608
See [`JavaExtension.java`](src/main/java/com/diffplug/gradle/spotless/JavaExtension.java) if you'd like to see how a language-specific set of custom rules is implemented. We'd love PR's which add support for other languages.
609609

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pluginManagement {
22
plugins {
3-
id 'com.diffplug.gradle.spotless' version '4.2.0'
3+
id 'com.diffplug.gradle.spotless' version '4.3.0'
44
}
55
}
66
plugins {

0 commit comments

Comments
 (0)