Skip to content

Commit 499e7f9

Browse files
committed
Delete placeholder Mekanism: Defense sourceset. It may return eventually, but it is annoying having to update it when making various internal changes to things
1 parent 0230ed9 commit 499e7f9

27 files changed

+6
-437
lines changed

build.gradle

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ idea {
4444
}
4545

4646
ext {
47-
secondaryModules = ['additions', 'defense', 'generators', 'tools']
47+
secondaryModules = ['additions', 'generators', 'tools']
4848
extraTypes = ['datagen']
4949
}
5050

@@ -444,10 +444,10 @@ tasks.named('jar', Jar).configure { Jar jar ->
444444
}
445445

446446
tasks.named('sourcesJar', Jar).configure { Jar jar ->
447-
dependsOn(classes, apiClasses, additionsClasses, defenseClasses, generatorsClasses, toolsClasses)
447+
dependsOn(classes, apiClasses, additionsClasses, generatorsClasses, toolsClasses)
448448
jar.duplicatesStrategy(DuplicatesStrategy.FAIL)
449449
//Note: Already contains main source set's sources by default
450-
jar.from(sourceSets.api.allJava, sourceSets.additions.allJava, sourceSets.defense.allJava, sourceSets.generators.allJava, sourceSets.tools.allJava)
450+
jar.from(sourceSets.api.allJava, sourceSets.additions.allJava, sourceSets.generators.allJava, sourceSets.tools.allJava)
451451
jar.manifest.attributes(getManifestAttributes('Mekanism'))
452452
}
453453

@@ -465,12 +465,11 @@ def secondaryJar(SourceSet sourceSet, String title) {
465465

466466
def apiJar = secondaryJar(sourceSets.api, '')
467467
def additionsJar = secondaryJar(sourceSets.additions, 'MekanismAdditions')
468-
def defenseJar = secondaryJar(sourceSets.defense, 'MekanismDefense')
469468
def generatorsJar = secondaryJar(sourceSets.generators, 'MekanismGenerators')
470469
def toolsJar = secondaryJar(sourceSets.tools, 'MekanismTools')
471470

472471
def mergeModuleResources = tasks.register('mergeModuleResources', MergeModuleResources, {
473-
dependsOn('classes', 'apiClasses', 'additionsClasses', 'defenseClasses', 'generatorsClasses', 'toolsClasses')
472+
dependsOn('classes', 'apiClasses', 'additionsClasses', 'generatorsClasses', 'toolsClasses')
474473
mustRunAfter('clean')
475474
//Note: Get the resources from the output of process resources, so that any expands that need to happen we know have already happened
476475
resources = tasks.named(sourceSets.main.processResourcesTaskName).get().outputs.files
@@ -518,7 +517,6 @@ artifacts {
518517
archives jar
519518
archives additionsJar
520519
archives generatorsJar
521-
archives defenseJar
522520
archives toolsJar
523521
archives allJar
524522
archives sourcesJar
@@ -529,7 +527,7 @@ tasks.register('optimizePng', OptimizePng) {
529527
//Ensure the logo is minimized (we add this file to each jar)
530528
inputFiles.from(file("${projectDir}/logo.png"))
531529
//Minimize any PNGs in the source sets
532-
def sourceSets = [sourceSets.main, sourceSets.additions, sourceSets.defense, sourceSets.generators, sourceSets.tools]
530+
def sourceSets = [sourceSets.main, sourceSets.additions, sourceSets.generators, sourceSets.tools]
533531
for (def sourceSet : sourceSets) {
534532
for (def dir : sourceSet.resources.srcDirs) {
535533
inputFiles.from(fileTree(dir: dir, includes: pngPatterns))
@@ -645,7 +643,6 @@ if (System.getenv('CURSEFORGE_KEY') != null || project.hasProperty('curseforgeKe
645643

646644
//Secondary modules/projects
647645
def additionsCfUpload = uploadSecondaryCurseProject(task, 345425, changelog, additionsJar)
648-
//def defenseCfUpload = uploadSecondaryCurseProject(task, 376939, changelog, defenseJar)
649646
def generatorsCfUpload = uploadSecondaryCurseProject(task, 268566, changelog, generatorsJar)
650647
def toolsCfUpload = uploadSecondaryCurseProject(task, 268567, changelog, toolsJar)
651648

@@ -684,12 +681,11 @@ UploadArtifact uploadSecondaryCurseProject(TaskPublishCurseForge task, long proj
684681
if (System.getenv('MODRINTH_TOKEN') != null || project.hasProperty('modrinthToken')) {
685682
logger.lifecycle('Enabling Modrinth config')
686683
def additionsModrinth = createSecondaryModrinthUpload('additions', 'a6F3uASn', additionsJar)
687-
//def defenseModrinth = createSecondaryModrinthUpload('defense', '', defenseJar)
688684
def generatorsModrinth = createSecondaryModrinthUpload('generators', 'OFVYKsAk', generatorsJar)
689685
def toolsModrinth = createSecondaryModrinthUpload('tools', 'tqQpq1lt', toolsJar)
690686
tasks.named('modrinth').configure {
691687
dependsOn(jar, apiJar, outputChangelog)
692-
finalizedBy(additionsModrinth, /*defenseModrinth,*/ generatorsModrinth, toolsModrinth)
688+
finalizedBy(additionsModrinth, generatorsModrinth, toolsModrinth)
693689
notCompatibleWithConfigurationCache('Not yet compatible')//TODO: Remove when possible
694690
}
695691

src/datagen/defense/java/mekanism/defense/client/DefenseLangProvider.java

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/datagen/defense/java/mekanism/defense/common/DefenseDataGenerator.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/datagen/defense/java/mekanism/defense/common/DefenseRecipeProvider.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/datagen/defense/java/mekanism/defense/common/DefenseTagProvider.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/datagen/defense/java/mekanism/defense/common/loot/DefenseBlockLootTables.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/datagen/defense/java/mekanism/defense/common/loot/DefenseLootProvider.java

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/datagen/generated/mekanismdefense/.cache/05ef9a63fd938838a6e55915f33fb7bc8aac26a1

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/datagen/generated/mekanismdefense/.cache/0f202e000d40347127b33b6edbbb29689b8cbf86

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/datagen/generated/mekanismdefense/.cache/59eb3dbb5f86130e09b3c62d89b9525ee01cf52d

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)