Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 5 additions & 25 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id("fabric-loom") version "1.10-SNAPSHOT"
id("maven-publish")
id("com.gradleup.shadow") version "9.0.0-beta11"
}

base {
Expand Down Expand Up @@ -65,7 +64,7 @@ configurations {
implementation.configure {
extendsFrom(library)
}
shadow.configure {
include.configure {
extendsFrom(library)
}
}
Expand Down Expand Up @@ -100,9 +99,6 @@ dependencies {
library("io.netty:netty-handler-proxy:${properties["netty_version"] as String}") { isTransitive = false }
library("io.netty:netty-codec-socks:${properties["netty_version"] as String}") { isTransitive = false }
library("de.florianmichael:WaybackAuthLib:${properties["waybackauthlib_version"] as String}")

// Launch sub project
shadow(project(":launch"))
}

loom {
Expand Down Expand Up @@ -140,6 +136,10 @@ tasks {
rename { "${it}_${licenseSuffix}" }
}

// Launch sub project
dependsOn(":launch:compileJava")
from(project(":launch").layout.buildDirectory.dir("classes/java/main"))

manifest {
attributes["Main-Class"] = "meteordevelopment.meteorclient.Main"
}
Expand All @@ -161,26 +161,6 @@ tasks {
options.compilerArgs.add("-Xlint:unchecked")
}

shadowJar {
configurations = listOf(project.configurations.shadow.get())

val licenseSuffix = project.base.archivesName.get()
from("LICENSE") {
rename { "${it}_${licenseSuffix}" }
}

dependencies {
exclude {
it.moduleGroup == "org.slf4j"
}
}
}

remapJar {
dependsOn(shadowJar)
inputFile.set(shadowJar.get().archiveFile)
}

javadoc {
with(options as StandardJavadocDocletOptions) {
addStringOption("Xdoclint:none", "-quiet")
Expand Down