mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
57 lines
1.3 KiB
Groovy
57 lines
1.3 KiB
Groovy
plugins {
|
|
id "com.github.johnrengelman.shadow"
|
|
}
|
|
|
|
architectury {
|
|
platformSetupLoomIde()
|
|
neoForge()
|
|
}
|
|
|
|
configurations {
|
|
common {
|
|
canBeResolved = true
|
|
canBeConsumed = false
|
|
}
|
|
compileClasspath.extendsFrom common
|
|
runtimeClasspath.extendsFrom common
|
|
developmentNeoForge.extendsFrom common
|
|
|
|
// Files in this configuration will be bundled into your mod using the Shadow plugin.
|
|
// Don"t use the `shadow` configuration from the plugin itself as it"s meant for excluding files.
|
|
shadowBundle {
|
|
canBeResolved = true
|
|
canBeConsumed = false
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
name = "NeoForged"
|
|
url = "https://maven.neoforged.net/releases"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
neoForge "net.neoforged:neoforge:$rootProject.neoforge_loader_version"
|
|
|
|
common(project(path: ":common", configuration: "namedElements")) { transitive false }
|
|
shadowBundle project(path: ":common", configuration: "transformProductionNeoForge")
|
|
}
|
|
|
|
processResources {
|
|
inputs.property "version", project.version
|
|
|
|
filesMatching("META-INF/mods.toml") {
|
|
expand version: project.version
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
configurations = [project.configurations.shadowBundle]
|
|
archiveClassifier = "dev-shadow"
|
|
}
|
|
|
|
remapJar {
|
|
input.set shadowJar.archiveFile
|
|
}
|