Skip to content

Commit

Permalink
feat: Switched from distributor-logging to slf4md
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Jun 11, 2024
1 parent fe2aa71 commit 645c47d
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 480 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fr.xpdustry.toxopid.dsl.mindustryDependencies
import fr.xpdustry.toxopid.spec.ModMetadata
import fr.xpdustry.toxopid.task.GithubArtifactDownload

plugins {
id("net.kyori.indra")
Expand All @@ -22,8 +23,15 @@ tasks.runMindustryClient {
mods.setFrom()
}

val downloadSlf4md by tasks.registering(GithubArtifactDownload::class) {
user = "xpdustry"
repo = "slf4md"
name = "slf4md-simple.jar"
version = libs.versions.slf4md.map { "v$it" }
}

tasks.runMindustryServer {
mods.from(tasks.shadowJar)
mods.from(tasks.shadowJar, downloadSlf4md)
}

tasks.shadowJar {
Expand All @@ -40,7 +48,7 @@ tasks.shadowJar {
main = extension.main.get(),
java = true,
hidden = true,
dependencies = extension.dependencies.get(),
dependencies = extension.dependencies.get().toMutableList().apply { add("slf4md") },
)

val temp = temporaryDir.resolve("plugin.json")
Expand Down
5 changes: 0 additions & 5 deletions distributor-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ distributorModule {
display = "DistributorCommon"
main = "com.xpdustry.distributor.common.DistributorCommonPlugin"
description = "Core classes of distributor."
dependencies = listOf("distributor-logging")
}

dependencies {
Expand All @@ -33,7 +32,3 @@ tasks.shadowJar {
exclude(dependency(projects.distributorCommonApi))
}
}

tasks.runMindustryServer {
mods.from(projects.distributorLoggingSimple.shadowJar)
}
16 changes: 0 additions & 16 deletions distributor-logging-simple/build.gradle.kts

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 645c47d

Please sign in to comment.