mirror of
https://github.com/Lucaslah/No-Report-Button.git
synced 2026-01-03 03:57:51 +00:00
70 lines
1.5 KiB
Groovy
Executable File
70 lines
1.5 KiB
Groovy
Executable File
plugins {
|
|
id "com.github.johnrengelman.shadow" version "8.1.1"
|
|
}
|
|
|
|
architectury {
|
|
injectInjectables = false
|
|
platformSetupLoomIde()
|
|
forge()
|
|
}
|
|
|
|
loom {
|
|
forge {
|
|
mixinConfig "noreportbutton.mixins.json"
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
common
|
|
shadowCommon
|
|
compileClasspath.extendsFrom common
|
|
runtimeClasspath.extendsFrom common
|
|
developmentForge.extendsFrom common
|
|
archivesBaseName = rootProject.archives_base_name + "-forge"
|
|
}
|
|
|
|
dependencies {
|
|
forge "net.minecraftforge:forge:${rootProject.properties["forge_version"]}"
|
|
|
|
common(project(path: ":common", configuration: "namedElements")) { transitive false }
|
|
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }
|
|
}
|
|
|
|
processResources {
|
|
inputs.property "version", project.version
|
|
|
|
filesMatching("META-INF/mods.toml") {
|
|
expand "version": project.version
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
exclude "fabric.mod.json"
|
|
exclude "architectury.common.json"
|
|
|
|
configurations = [project.configurations.shadowCommon]
|
|
setArchiveClassifier("dev-shadow")
|
|
}
|
|
|
|
remapJar {
|
|
input.set shadowJar.archiveFile
|
|
dependsOn shadowJar
|
|
setArchiveClassifier(null)
|
|
}
|
|
|
|
jar {
|
|
setArchiveClassifier("dev")
|
|
}
|
|
|
|
sourcesJar {
|
|
def commonSources = project(":common").sourcesJar
|
|
dependsOn commonSources
|
|
from commonSources.archiveFile.map { zipTree(it) }
|
|
}
|
|
|
|
components.java {
|
|
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
|
|
skip()
|
|
}
|
|
}
|