mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12:13 +02:00
Add spotless check for JSON files
This commit is contained in:
parent
41210c3f78
commit
cbb3765648
2
.github/workflows/gradle.yml
vendored
2
.github/workflows/gradle.yml
vendored
@ -4,11 +4,13 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.json'
|
||||
- 'gradle**'
|
||||
- 'build.gradle'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.json'
|
||||
- 'gradle**'
|
||||
- 'build.gradle'
|
||||
# Makes it possible to run this workflow manually from the Actions tab
|
||||
|
10
build.gradle
10
build.gradle
@ -41,7 +41,7 @@ dependencies {
|
||||
//
|
||||
// In other words, Wurst won't compile without this library,
|
||||
// even though it's Minecraft that actually uses it.
|
||||
modImplementation 'com.google.code.findbugs:jsr305:3.0.2'
|
||||
modImplementation "com.google.code.findbugs:jsr305:3.0.2"
|
||||
}
|
||||
|
||||
loom {
|
||||
@ -73,17 +73,21 @@ java {
|
||||
|
||||
jar {
|
||||
from("LICENSE") {
|
||||
rename { "${it}_${project.base.archivesName.get()}"}
|
||||
rename {"${it}_${project.base.archivesName.get()}"}
|
||||
}
|
||||
}
|
||||
|
||||
spotless {
|
||||
lineEndings("WINDOWS")
|
||||
java {
|
||||
removeUnusedImports()
|
||||
indentWithTabs()
|
||||
trimTrailingWhitespace()
|
||||
eclipse().configFile(file("codestyle/formatter.xml"))
|
||||
lineEndings('WINDOWS')
|
||||
}
|
||||
json {
|
||||
target "src/**/*.json"
|
||||
gson().indentWithSpaces(2).version("2.10.1")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user