Skip to content

Commit

Permalink
Move indraSpotlessLicenser to allprojects section
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeregorix committed Dec 19, 2024
1 parent 7758e35 commit 9791af5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 79 deletions.
16 changes: 8 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
9 changes: 0 additions & 9 deletions forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {
Expand Down
12 changes: 0 additions & 12 deletions generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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) {
Expand Down
11 changes: 0 additions & 11 deletions library-manager/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
}
11 changes: 0 additions & 11 deletions modlauncher-transformers/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
9 changes: 0 additions & 9 deletions neoforge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {
Expand Down
10 changes: 0 additions & 10 deletions testplugins/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
}
9 changes: 0 additions & 9 deletions vanilla/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9791af5

Please sign in to comment.