Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump default versions #1095

Merged
merged 7 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ anchors:
- *restore_cache_wrapper
- *restore_cache_deps
- run:
name: gradlew check
command: export SPOTLESS_EXCLUDE_MAVEN=true && ./gradlew check --build-cache
name: gradlew check -x spotlessCheck
command: export SPOTLESS_EXCLUDE_MAVEN=true && ./gradlew check -x spotlessCheck --build-cache
- store_test_results:
path: testlib/build/test-results/test
- store_test_results:
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
## [Unreleased]
### Changed
* Bump CI from Java 15 to 17 ([#1094](https://github.com/diffplug/spotless/pull/1094)).
* Bump default versions of formatters ([#1095](https://github.com/diffplug/spotless/pull/1095)).
* google-java-format `1.12.0` -> `1.13.0`
* ktfmt `0.29` -> `0.30`

## [2.22.0] - 2022-01-13
### Added
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2021 DiffPlug
* Copyright 2016-2022 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -93,7 +93,7 @@ public static FormatterStep create(String groupArtifact, String version, String
State::createFormat);
}

static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "1.7").add(11, "1.12.0");
static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "1.7").add(11, "1.13.0");

public static String defaultGroupArtifact() {
return MAVEN_COORDINATE;
Expand Down
4 changes: 2 additions & 2 deletions lib/src/main/java/com/diffplug/spotless/kotlin/KtfmtStep.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2021 DiffPlug
* Copyright 2016-2022 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@ public class KtfmtStep {
// prevent direct instantiation
private KtfmtStep() {}

private static final String DEFAULT_VERSION = "0.29";
private static final String DEFAULT_VERSION = "0.30";
static final String NAME = "ktfmt";
static final String PACKAGE = "com.facebook";
static final String MAVEN_COORDINATE = PACKAGE + ":ktfmt:";
Expand Down
4 changes: 4 additions & 0 deletions plugin-gradle/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).

## [Unreleased]
### Changed
* Bump default versions of formatters ([#1095](https://github.com/diffplug/spotless/pull/1095)).
* google-java-format `1.12.0` -> `1.13.0`
* ktfmt `0.29` -> `0.30`

## [6.2.0] - 2022-01-13
### Added
Expand Down
6 changes: 3 additions & 3 deletions plugin-gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ spotless { // if you are using build.gradle.kts, instead of 'spotless {' use:
```kotlin
spotless {
kotlin {
ktfmt('0.15').dropboxStyle() // version and dropbox style are optional
ktfmt('0.30').dropboxStyle() // version and dropbox style are optional
```

<a name="applying-ktlint-to-kotlin-files"></a>
Expand All @@ -341,7 +341,7 @@ spotless {
spotless {
kotlin {
// version and userData are both optional
ktlint('0.37.2').userData(mapOf('indent_size' to '2', 'continuation_indent_size' to '2'))
ktlint('0.43.2').userData(mapOf('indent_size' to '2', 'continuation_indent_size' to '2'))
```

### diktat
Expand All @@ -352,7 +352,7 @@ spotless {
spotless {
kotlin {
// version and configFile are both optional
diktat('0.4.0').configFile("full/path/to/diktat-analysis.yml")
diktat('1.0.1').configFile("full/path/to/diktat-analysis.yml")
```

<a name="applying-scalafmt-to-scala-files"></a>
Expand Down
3 changes: 3 additions & 0 deletions plugin-maven/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).

## [Unreleased]
* Bump default versions of formatters ([#1095](https://github.com/diffplug/spotless/pull/1095)).
* google-java-format `1.12.0` -> `1.13.0`
* ktfmt `0.29` -> `0.30`

## [2.20.0] - 2022-01-13
### Added
Expand Down
6 changes: 3 additions & 3 deletions plugin-maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T

```xml
<ktfmt>
<version>0.18</version> <!-- optional -->
<version>0.30</version> <!-- optional -->
<style>DEFAULT</style> <!-- optional, other option is DROPBOX -->
</ktfmt>
```
Expand All @@ -342,7 +342,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T

```xml
<ktlint>
<version>0.37.2</version> <!-- optional -->
<version>0.43.2</version> <!-- optional -->
</ktlint>
```

Expand All @@ -352,7 +352,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T

```xml
<diktat>
<version>0.4.0</version> <!-- optional -->
<version>1.0.1</version> <!-- optional -->
<configFile>full/path/to/diktat-analysis.yml</configFile> <!-- optional, configuration file path -->
</diktat>
```
Expand Down