Skip to content

Commit

Permalink
Upgrade spotless gradle plugin to 6.0.0 (#80560) (#80631)
Browse files Browse the repository at this point in the history
# Conflicts:
#	build-conventions/build.gradle
  • Loading branch information
mark-vieira authored Nov 10, 2021
1 parent bad0bd6 commit b74ba46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-conventions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
api 'gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0'
api 'org.apache.rat:apache-rat:0.11'
compileOnly "com.puppycrawl.tools:checkstyle:8.42"
api('com.diffplug.spotless:spotless-plugin-gradle:5.16.0') {
api('com.diffplug.spotless:spotless-plugin-gradle:6.0.0') {
exclude module: "groovy-xml"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public void apply(Project project) {
project.getPlugins().apply(PrecommitTaskPlugin.class);
project.getPlugins().apply(SpotlessPlugin.class);

// Spotless resolves required dependencies from project repositories, so we need maven central
project.getRepositories().mavenCentral();

project.getExtensions().getByType(SpotlessExtension.class).java(java -> {
String importOrderPath = "build-conventions/elastic.importorder";
String formatterConfigPath = "build-conventions/formatterConfig.xml";
Expand Down

0 comments on commit b74ba46

Please sign in to comment.