Skip to content

Commit

Permalink
Enable immaculate auto-formatting (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte authored Jan 1, 2025
1 parent ebf5b8c commit a228220
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

# Use via git config --local --add blame.ignoreRevsFile .git-blame-ignore-revs
# Github should automatically adhere to this.

# Applying Immaculate / NeoForge formatting
ebf5b8cf432903f85c37a561ef0fe168fd81b392
2 changes: 1 addition & 1 deletion .github/workflows/build-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: neoforged/actions/.github/workflows/build-prs.yml@main
with:
java: 17
gradle_tasks: test
gradle_tasks: check
jar_compatibility: false

test-project:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: neoforged/actions/.github/workflows/gradle-publish.yml@main
with:
java: 17
pre_gradle_tasks: test
pre_gradle_tasks: check
gradle_tasks: 'publish publishPlugins'
version_labels: -beta, -stable
secrets:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import groovy.transform.TupleConstructor
plugins {
id 'java-gradle-plugin'
id 'maven-publish'
id 'net.neoforged.gradleutils' version '3.0.0'
id 'net.neoforged.gradleutils'
id 'com.gradle.plugin-publish' version '1.2.1'
id 'com.gradleup.shadow' version '8.3.0'
}
Expand Down
11 changes: 10 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@

plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.9.0'
id 'net.neoforged.gradleutils' version '4.0.0' apply false
id 'dev.lukebemish.immaculate' version '0.1.6' apply false
}

rootProject.name = 'moddev-gradle'

gradle.lifecycle.beforeProject { project ->
project.plugins.withId("java") {
apply plugin: 'dev.lukebemish.immaculate'
apply plugin: 'net.neoforged.gradleutils.immaculate'
}
}

0 comments on commit a228220

Please sign in to comment.