Skip to content

Commit 19ad28d

Browse files
authored
Merge pull request #564 from diffplug/feat/dep-update
Dependency update
2 parents 9c6b725 + b77ce92 commit 19ad28d

File tree

11 files changed

+35
-28
lines changed

11 files changed

+35
-28
lines changed

CHANGES.md

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1313
### Added
1414
* Support for google-java-format 1.8 (including test infrastructure for Java 11). ([#562](https://github.com/diffplug/spotless/issues/562))
1515
* Improved PaddedCell such that it is as performant as non-padded cell - no reason not to have it always enabled. Deprecated all of `PaddedCellBulk`. ([#561](https://github.com/diffplug/spotless/pull/561))
16+
### Changed
17+
* Updated a bunch of dependencies, most notably: ([#564](https://github.com/diffplug/spotless/pull/564))
18+
* jgit `5.5.0.201909110433-r` -> `5.7.0.202003110725-r`
19+
* gradle `6.2.2` -> `6.3`
20+
* spotbugs gradle plugin `2.0.0` -> `4.0.8`
1621

1722
## [1.28.1] - 2020-04-02
1823
### Fixed

build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
plugins {
22
// https://github.com/diffplug/goomph/blob/master/CHANGES.md
3-
id 'com.diffplug.eclipse.resourcefilters' version '3.21.0'
3+
id 'com.diffplug.eclipse.resourcefilters' version '3.22.0'
44
// https://plugins.gradle.org/plugin/com.gradle.plugin-publish
55
id 'com.gradle.plugin-publish' version '0.11.0' apply false
66
// https://github.com/bintray/gradle-bintray-plugin/releases
7-
id 'com.jfrog.bintray' version '1.8.4' apply false
7+
id 'com.jfrog.bintray' version '1.8.5' apply false
88
// https://github.com/mnlipp/jdrupes-mdoclet/releases
99
id 'org.jdrupes.mdoclet' version '1.0.9' apply false
1010
// https://github.com/spotbugs/spotbugs/releases
11-
id "com.github.spotbugs" version "2.0.0" apply false
11+
id "com.github.spotbugs" version "4.0.8" apply false
1212
//https://github.com/diffplug/goomph
13-
id "com.diffplug.p2.asmaven" version "3.21.0" apply false
13+
id "com.diffplug.p2.asmaven" version "3.22.0" apply false
1414
// https://github.com/diffplug/spotless-changelog
1515
id "com.diffplug.spotless-changelog" version "1.1.0" apply false
1616
}
@@ -47,5 +47,5 @@ eclipseResourceFilters {
4747
}
4848

4949
static Class<?> spotBugsTaskType() {
50-
return com.github.spotbugs.SpotBugsTask
50+
return com.github.spotbugs.snom.SpotBugsTask
5151
}

gradle.properties

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ artifactIdGradle=spotless-plugin-gradle
1515

1616
# Build requirements
1717
VER_JAVA=1.8
18-
VER_SPOTBUGS=3.1.6
18+
VER_SPOTBUGS=4.0.2
1919

2020
# Dependencies provided by Spotless plugin
2121
VER_SLF4J=[1.6,2.0[
2222

2323
# Used in multiple places
2424
VER_DURIAN=1.2.0
25-
VER_JUNIT=4.12
26-
VER_ASSERTJ=3.5.2
27-
VER_MOCKITO=2.13.0
25+
VER_JUNIT=4.13
26+
VER_ASSERTJ=3.15.0
27+
VER_MOCKITO=3.3.3
2828

2929
# Used for Maven Plugin
3030
VER_MAVEN_API=3.0
3131
VER_ECLIPSE_AETHER=1.1.0
32-
VER_MUSTACHE=0.9.5
32+
VER_MUSTACHE=0.9.6
3333
VER_PLEXUS_RESOURCES=1.0.1

gradle/java-setup.gradle

+5-11
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,21 @@ eclipseResourceFilters {
3434
apply plugin: 'com.github.spotbugs'
3535
spotbugs {
3636
toolVersion = VER_SPOTBUGS
37-
sourceSets = [
38-
// don't check the test code
39-
sourceSets.main
40-
]
4137
ignoreFailures = false // bug free or it doesn't ship!
4238
reportsDir = file('build/spotbugs')
4339
effort = 'max' // min|default|max
4440
reportLevel = 'medium' // low|medium|high (low = sensitive to even minor mistakes)
4541
omitVisitors = [] // bugs that we want to ignore
4642
}
47-
// HTML instead of XML
48-
tasks.withType(spotBugsTaskType()) {
43+
tasks.named('spotbugsTest') {
44+
enabled = false
45+
}
46+
tasks.named('spotbugsMain') {
4947
// only run on Java 8 (no benefit to running twice)
5048
enabled = org.gradle.api.JavaVersion.current() == org.gradle.api.JavaVersion.VERSION_1_8
51-
reports {
52-
xml.enabled = false
53-
html.enabled = true
54-
}
5549
}
5650
dependencies {
5751
compileOnly 'net.jcip:jcip-annotations:1.0'
58-
compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.6'
52+
compileOnly "com.github.spotbugs:spotbugs-annotations:${VER_SPOTBUGS}"
5953
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
6054
}

gradle/wrapper/gradle-wrapper.jar

-7 Bytes
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew.bat

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
2929
set APP_BASE_NAME=%~n0
3030
set APP_HOME=%DIRNAME%
3131

32+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34+
3235
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
3336
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
3437

lib-extra/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ dependencies {
1212
implementation "com.diffplug.durian:durian-core:${VER_DURIAN}"
1313
implementation "com.diffplug.durian:durian-collect:${VER_DURIAN}"
1414
// needed by GitAttributesLineEndings
15-
implementation "org.eclipse.jgit:org.eclipse.jgit:5.5.0.201909110433-r"
15+
implementation "org.eclipse.jgit:org.eclipse.jgit:5.7.0.202003110725-r"
1616
implementation "com.googlecode.concurrent-trees:concurrent-trees:2.6.1"
1717
// used for xml parsing in EclipseFormatter
18-
implementation "org.codehaus.groovy:groovy-xml:2.4.7"
18+
implementation "org.codehaus.groovy:groovy-xml:3.0.3"
1919

2020
// testing
2121
testImplementation project(':testlib')

plugin-gradle/CHANGES.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).
44

55
## [Unreleased]
6+
### Added
7+
* Support for google-java-format 1.8 (requires you to run build on Java 11) ([#562](https://github.com/diffplug/spotless/issues/562))
68
### Changed
79
* PaddedCell is now always enabled. It is strictly better than non-padded cell, and there is no performance penalty. [See here](https://github.com/diffplug/spotless/pull/560#issuecomment-621752798) for detailed explanation. ([#561](https://github.com/diffplug/spotless/pull/561))
10+
* Updated a bunch of dependencies, most notably jgit `5.5.0.201909110433-r` -> `5.7.0.202003110725-r`. ([#564](https://github.com/diffplug/spotless/pull/564))
811

912
## [3.28.1] - 2020-04-02
10-
### Added
11-
* Support for google-java-format 1.8 (requires you to run build on Java 11) ([#562](https://github.com/diffplug/spotless/issues/562))
1213
### Fixed
1314
* Eclipse-WTP formatter (web tools platform, not java) handles some character encodings incorrectly on OS with non-unicode default file encoding [#545](https://github.com/diffplug/spotless/issues/545). Fixed for Eclipse-WTP formatter Eclipse version 4.13.0 (default version).
1415

plugin-maven/CHANGES.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
44

55
## [Unreleased]
6+
### Added
7+
* Support for google-java-format 1.8 (requires you to run build on Java 11) ([#562](https://github.com/diffplug/spotless/issues/562))
8+
* Updated a bunch of dependencies, most notably jgit `5.5.0.201909110433-r` -> `5.7.0.202003110725-r`. ([#564](https://github.com/diffplug/spotless/pull/564))
69

710
## [1.30.0] - 2020-04-10
811
### Added
912
* Support for prettier ([#555](https://github.com/diffplug/spotless/pull/555)).
10-
* Support for google-java-format 1.8 (requires you to run build on Java 11) ([#562](https://github.com/diffplug/spotless/issues/562))
1113

1214
## [1.29.0] - 2020-04-02
1315
### Added

testlib/src/test/java/com/diffplug/spotless/npm/TsFmtFormatterStepTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public void formattingUsingConfigFile() throws Exception {
5757
final String cleanFile = filedir + configFileNameWithoutExtension + ".clean";
5858

5959
// some config options expect to see at least one file in the baseDir, so let's write one there
60-
Files.write(new File(configFile.getParentFile(), configFileNameWithoutExtension + ".ts").toPath(), getTestResource(dirtyFile).getBytes(StandardCharsets.UTF_8));
60+
File srcDir = new File(rootFolder(), "src/main/typescript");
61+
Files.createDirectories(srcDir.toPath());
62+
Files.write(new File(srcDir, configFileNameWithoutExtension + ".ts").toPath(), getTestResource(dirtyFile).getBytes(StandardCharsets.UTF_8));
6163

6264
final FormatterStep formatterStep = TsFmtFormatterStep.create(
6365
TsFmtFormatterStep.defaultDevDependencies(),

0 commit comments

Comments
 (0)