Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CybAtax committed May 25, 2024
1 parent 4ceb69b commit adf3510
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
files: CHANGELOG.md
- name: Fail if changelog was not modified
if: steps.changed-changelog-md.outputs.any_changed == 'false'
run: exit 1
run: exit 1
2 changes: 1 addition & 1 deletion .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
node-version: 20
- uses: gradle/actions/setup-gradle@v3
- name: Check formatting
run: ./gradlew spotlessCheck
run: ./gradlew spotlessCheck
54 changes: 27 additions & 27 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import java.nio.charset.StandardCharsets

plugins {
id 'java'
id 'com.diffplug.spotless' version '6.25.0'
id 'java'
id 'com.diffplug.spotless' version '6.25.0'
}

group = 'de.trollteam'
version = '1.0-SNAPSHOT'

repositories {
mavenCentral()
mavenCentral()
}

dependencies {
testImplementation platform('org.junit:junit-bom:5.10.2')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation platform('org.junit:junit-bom:5.10.2')
testImplementation 'org.junit.jupiter:junit-jupiter'
}

wrapper {
Expand All @@ -23,30 +23,30 @@ wrapper {
}

test {
useJUnitPlatform()
useJUnitPlatform()
}

spotless {
enforceCheck(false)
ratchetFrom "origin/main"

format "misc", {
target fileTree(".") {
exclude(".gradle", ".idea/", "build/", "gradle/", "src/")
}

encoding(StandardCharsets.UTF_8)
trimTrailingWhitespace()
indentWithTabs()
endWithNewline()
}

java {
target "src/**/java/**/*.java"
encoding(StandardCharsets.UTF_8)
removeUnusedImports()
prettier(["prettier": "3.0.3", "prettier-plugin-java": "2.3.0"])
.configFile(".prettierrc.yml")
}
enforceCheck(false)
ratchetFrom "origin/main"

format "misc", {
target fileTree(".") {
exclude(".gradle", ".idea/", "build/", "gradle/", "src/")
}

encoding(StandardCharsets.UTF_8)
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}

java {
target "src/**/java/**/*.java"
encoding(StandardCharsets.UTF_8)
removeUnusedImports()
prettier(["prettier": "3.0.3", "prettier-plugin-java": "2.3.0"])
.configFile(".prettierrc.yml")
}

}

0 comments on commit adf3510

Please sign in to comment.