Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable immaculate auto-formatting #215

Merged
merged 2 commits into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
}
}
Loading