diff --git a/build.gradle.kts b/build.gradle.kts index 8b9efa756d7..936320ff20b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -176,14 +176,6 @@ dependencies { } } -indraSpotlessLicenser { - licenseHeaderFile(rootProject.file("HEADER.txt")) - - property("name", "Sponge") - property("organization", organization) - property("url", projectUrl) -} - allprojects { configurations.configureEach { resolutionStrategy.dependencySubstitution { @@ -274,6 +266,14 @@ allprojects { } } + indraSpotlessLicenser { + licenseHeaderFile(rootProject.file("HEADER.txt")) + + property("name", "Sponge") + property("organization", organization) + property("url", projectUrl) + } + val spongeSnapshotRepo: String? by project val spongeReleaseRepo: String? by project tasks { diff --git a/forge/build.gradle.kts b/forge/build.gradle.kts index f25aea2f1aa..7aeb4a2e696 100644 --- a/forge/build.gradle.kts +++ b/forge/build.gradle.kts @@ -26,7 +26,6 @@ val apiVersion: String by project val minecraftVersion: String by project val forgeVersion: String by project val recommendedVersion: String by project -val organization: String by project val projectUrl: String by project description = "The SpongeAPI implementation for MinecraftForge" @@ -433,14 +432,6 @@ sourceSets { } } -indraSpotlessLicenser { - licenseHeaderFile(rootProject.file("HEADER.txt")) - - property("name", "Sponge") - property("organization", organization) - property("url", projectUrl) -} - publishing { publications { register("sponge", MavenPublication::class) { diff --git a/generator/build.gradle.kts b/generator/build.gradle.kts index d2a16fbe78f..6481b69c15c 100644 --- a/generator/build.gradle.kts +++ b/generator/build.gradle.kts @@ -2,10 +2,6 @@ plugins { id("org.spongepowered.gradle.vanilla") } -val apiVersion: String by project -val organization: String by project -val projectUrl: String by project - description = "Code generator for automatically producing API catalog classes based off of Vanilla MC data" minecraft { @@ -30,14 +26,6 @@ dependencies { runtimeOnly(libs.tinylog.slf4j) } -indraSpotlessLicenser { - licenseHeaderFile(rootProject.file("HEADER.txt")) - - property("name", "Sponge") - property("organization", organization) - property("url", projectUrl) -} - val apiBase = rootProject.file("SpongeAPI/src/main/java/") val temporaryLicenseHeader = project.layout.buildDirectory.file("api-gen-license-header.txt") tasks.register("generateApiData", JavaExec::class) { diff --git a/library-manager/build.gradle.kts b/library-manager/build.gradle.kts index 4e7759a828a..e2a23945059 100644 --- a/library-manager/build.gradle.kts +++ b/library-manager/build.gradle.kts @@ -1,14 +1,3 @@ -val organization: String by project -val projectUrl: String by project - -indraSpotlessLicenser { - licenseHeaderFile(rootProject.file("HEADER.txt")) - - property("name", "Sponge") - property("organization", organization) - property("url", projectUrl) -} - dependencies { implementation(apiLibs.gson) } diff --git a/modlauncher-transformers/build.gradle.kts b/modlauncher-transformers/build.gradle.kts index b9afded8cc1..390fab762bd 100644 --- a/modlauncher-transformers/build.gradle.kts +++ b/modlauncher-transformers/build.gradle.kts @@ -1,14 +1,3 @@ -val organization: String by project -val projectUrl: String by project - -indraSpotlessLicenser { - licenseHeaderFile(rootProject.file("HEADER.txt")) - - property("name", "Sponge") - property("organization", organization) - property("url", projectUrl) -} - dependencies { // AccessWidener transformer implementation(libs.accessWidener) { diff --git a/neoforge/build.gradle.kts b/neoforge/build.gradle.kts index 1cb8d3937c3..a7b86632259 100644 --- a/neoforge/build.gradle.kts +++ b/neoforge/build.gradle.kts @@ -26,7 +26,6 @@ val apiVersion: String by project val minecraftVersion: String by project val neoForgeVersion: String by project val recommendedVersion: String by project -val organization: String by project val projectUrl: String by project description = "The SpongeAPI implementation for NeoForge" @@ -417,14 +416,6 @@ sourceSets { } } -indraSpotlessLicenser { - licenseHeaderFile(rootProject.file("HEADER.txt")) - - property("name", "Sponge") - property("organization", organization) - property("url", projectUrl) -} - publishing { publications { register("sponge", MavenPublication::class) { diff --git a/testplugins/build.gradle.kts b/testplugins/build.gradle.kts index 10bd0a7c960..293ff49b8e4 100644 --- a/testplugins/build.gradle.kts +++ b/testplugins/build.gradle.kts @@ -1,15 +1,5 @@ val apiVersion: String by project -val organization: String by project -val projectUrl: String by project dependencies { annotationProcessor(implementation("org.spongepowered:spongeapi:$apiVersion")!!) } - -indraSpotlessLicenser { - licenseHeaderFile(rootProject.file("HEADER.txt")) - - property("name", "Sponge") - property("organization", organization) - property("url", projectUrl) -} diff --git a/vanilla/build.gradle.kts b/vanilla/build.gradle.kts index def019b0dc9..b936a70281c 100644 --- a/vanilla/build.gradle.kts +++ b/vanilla/build.gradle.kts @@ -17,7 +17,6 @@ val apiVersion: String by project val apiJavaTarget: String by project val minecraftVersion: String by project val recommendedVersion: String by project -val organization: String by project val projectUrl: String by project description = "The SpongeAPI implementation for Vanilla Minecraft" @@ -518,14 +517,6 @@ tasks { } } -indraSpotlessLicenser { - licenseHeaderFile(rootProject.file("HEADER.txt")) - - property("name", "Sponge") - property("organization", organization) - property("url", projectUrl) -} - val universalJar by tasks.existing val vanillaInstallerJar by tasks.existing val vanillaAppLaunchJar by tasks.existing