Skip to content

Commit e79fc4a

Browse files
committed
style: apply spotless to build files
1 parent d8b8271 commit e79fc4a

File tree

6 files changed

+36
-34
lines changed

6 files changed

+36
-34
lines changed

app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
*/
66

77
plugins {
8-
id 'buildlogic.java-application-conventions'
8+
id 'buildlogic.java-application-conventions'
99
}
1010

1111
dependencies {
12-
implementation 'org.apache.commons:commons-text'
13-
implementation project(':utilities')
12+
implementation 'org.apache.commons:commons-text'
13+
implementation project(':utilities')
1414
}
1515

1616
application {
17-
// Define the main class for the application.
18-
mainClass = 'org.example.app.App'
17+
// Define the main class for the application.
18+
mainClass = 'org.example.app.App'
1919
}

build-logic/build.gradle

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,27 @@
55
*/
66

77
plugins {
8-
// Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
9-
id 'groovy-gradle-plugin'
10-
id 'com.diffplug.spotless'
8+
// Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
9+
id 'groovy-gradle-plugin'
10+
id 'com.diffplug.spotless'
1111
}
1212

1313
repositories {
14-
// Use the plugin portal to apply community plugins in convention plugins.
15-
gradlePluginPortal()
14+
// Use the plugin portal to apply community plugins in convention plugins.
15+
gradlePluginPortal()
16+
mavenCentral()
1617
}
1718

1819
spotless {
19-
encoding 'UTF-8'
20+
encoding 'UTF-8'
2021

21-
groovy {
22-
importOrder('java|javax', 'org', 'com', 'com.diffplug', '', '\\#')
23-
removeSemicolons()
24-
greclipse()
25-
excludeJava()
26-
}
27-
groovyGradle {
28-
greclipse()
29-
}
22+
groovy {
23+
importOrder('java|javax', 'org', 'com', 'com.diffplug', '', '\\#')
24+
removeSemicolons()
25+
greclipse()
26+
excludeJava()
27+
}
28+
groovyGradle {
29+
greclipse()
30+
}
3031
}

build-logic/settings.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
* This project uses @Incubating APIs which are subject to change.
66
*/
77
plugins {
8-
// https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md
9-
id 'com.diffplug.spotless' version '7.0.2' apply false
8+
// https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md
9+
id 'com.diffplug.spotless' version '7.0.2' apply false
1010
}
1111

12+
1213
dependencyResolutionManagement {
13-
// Reuse version catalog from the main build.
14-
versionCatalogs {
15-
create('libs', { from(files("../gradle/libs.versions.toml")) })
16-
}
14+
// Reuse version catalog from the main build.
15+
versionCatalogs {
16+
create('libs', { from(files("../gradle/libs.versions.toml")) })
17+
}
1718
}
1819

1920
rootProject.name = 'build-logic'

list/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
*/
66

77
plugins {
8-
id 'buildlogic.java-library-conventions'
8+
id 'buildlogic.java-library-conventions'
99
}

settings.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ pluginManagement {
1717
}
1818

1919
plugins {
20-
// Apply the foojay-resolver plugin to allow automatic download of JDKs
21-
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
22-
23-
// https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md
24-
id 'com.diffplug.spotless' version '7.0.2' apply false
20+
// Apply the foojay-resolver plugin to allow automatic download of JDKs
21+
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
22+
23+
// https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md
24+
id 'com.diffplug.spotless' version '7.0.2' apply false
2525
}
2626

2727
rootProject.name = 'spotless-cli'

utilities/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
*/
66

77
plugins {
8-
id 'buildlogic.java-library-conventions'
8+
id 'buildlogic.java-library-conventions'
99
}
1010

1111
dependencies {
12-
api project(':list')
12+
api project(':list')
1313
}

0 commit comments

Comments
 (0)