From 258a0e24d9e228336742da2a195f4ab1d9d134cb Mon Sep 17 00:00:00 2001 From: Fourmisain <8464472+Fourmisain@users.noreply.github.com> Date: Fri, 23 Apr 2021 19:28:42 +0200 Subject: [PATCH] fix relative path resolution --- build.gradle | 2 +- forge.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"