diff --git a/build.gradle b/build.gradle index dcda7fd..2c77904 100644 --- a/build.gradle +++ b/build.gradle @@ -177,7 +177,7 @@ gradle.afterProject { def url = new URL( "https://raw.githubusercontent.com/TheRandomLabs/Common-Gradle/$branch/.editorconfig" ) - def file = new File(".editorconfig") + def file = file(".editorconfig") url.withInputStream { input -> file.withOutputStream { diff --git a/forge.gradle b/forge.gradle index 6f32bc2..c83b513 100644 --- a/forge.gradle +++ b/forge.gradle @@ -12,7 +12,7 @@ ext { //For some reason, ForgeGradle doesn't like it when this is true. autoUpdateLicenses = false registerDefaultMavenPublication = false - autoConfigTOMLClassesDir = new File("build/autoconfig-toml") + autoConfigTOMLClassesDir = file("build/autoconfig-toml") } apply from: "https://raw.githubusercontent.com/TheRandomLabs/Common-Gradle/$branch/build.gradle"