91 lines
2.5 KiB
Groovy
91 lines
2.5 KiB
Groovy
plugins {
|
|
id 'com.github.johnrengelman.shadow'
|
|
}
|
|
|
|
loom {
|
|
forge {
|
|
mixinConfig "simplycompat.mixins.json"
|
|
}
|
|
}
|
|
|
|
architectury {
|
|
platformSetupLoomIde()
|
|
forge()
|
|
}
|
|
|
|
// def localModsDir = project.rootProject.file('./run/mods/')
|
|
// if (localModsDir.exists() && localModsDir.isDirectory()) {
|
|
// def localMods = localModsDir
|
|
// .listFiles({ file -> file.isFile() && file.name.endsWith('.jar') } as FileFilter)
|
|
// localMods.each { mod ->
|
|
// dependencies {
|
|
// modLocalRuntime files(mod)
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
configurations {
|
|
common {
|
|
canBeResolved = true
|
|
canBeConsumed = false
|
|
}
|
|
compileClasspath.extendsFrom common
|
|
runtimeClasspath.extendsFrom common
|
|
developmentForge.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 {
|
|
url "https://www.cursemaven.com"
|
|
content {
|
|
includeGroup "curse.maven"
|
|
}
|
|
}
|
|
|
|
maven { url "https://maven.shedaniel.me/" }
|
|
}
|
|
|
|
dependencies {
|
|
forge "net.minecraftforge:forge:$rootProject.forge_version"
|
|
|
|
// Architectury API. This is optional, and you can comment it out if you don't need it.
|
|
modImplementation "dev.architectury:architectury-forge:$rootProject.architectury_api_version"
|
|
|
|
modApi("me.shedaniel.cloth:cloth-config-forge:${rootProject.cloth_config_version}")
|
|
modCompileOnly "curse.maven:simplyswords-659887:5255981"
|
|
// modImplementation "curse.maven:simplyswords-659887:5255981"
|
|
// runtimeOnly "curse.maven:better-combat-by-daedelus-639842:5625757"
|
|
// runtimeOnly "curse.maven:playeranimator-658587:4587214"
|
|
// implementation "curse.maven:additional-additions-forge-582387:5155724"
|
|
// implementation "curse.maven:create-328085:5838779"
|
|
// implementation "curse.maven:create-industry-693815:5811638"
|
|
|
|
|
|
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
|
shadowBundle project(path: ':common', configuration: 'transformProductionForge')
|
|
}
|
|
|
|
processResources {
|
|
inputs.property 'version', project.version
|
|
|
|
filesMatching('META-INF/mods.toml') {
|
|
expand version: project.version
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
configurations = [project.configurations.shadowBundle]
|
|
archiveClassifier = 'dev-shadow'
|
|
}
|
|
|
|
remapJar {
|
|
inputFile.set shadowJar.archiveFile
|
|
}
|