mirror of
https://github.com/architectury/architectury-api.git
synced 2026-03-30 13:05:25 -05:00
82 lines
1.8 KiB
Groovy
82 lines
1.8 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven { url "https://files.minecraftforge.net/maven" }
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath(group: "net.minecraftforge.gradle", name: "ForgeGradle", version: "3.+", changing: true)
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "com.github.johnrengelman.shadow" version "5.0.0"
|
|
id "eclipse"
|
|
}
|
|
|
|
apply plugin: "net.minecraftforge.gradle"
|
|
|
|
minecraft {
|
|
mappings(channel: "official", version: rootProject.architect.minecraft)
|
|
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
|
runs {
|
|
client {
|
|
workingDirectory project.file("run")
|
|
mods {
|
|
architectury {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
server {
|
|
workingDirectory project.file("run")
|
|
mods {
|
|
architectury {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
jcenter()
|
|
maven { url "https://files.minecraftforge.net/maven" }
|
|
}
|
|
|
|
configurations {
|
|
shadow
|
|
}
|
|
|
|
dependencies {
|
|
minecraft("net.minecraftforge:forge:${rootProject.architect.minecraft}-${rootProject.forge_version}")
|
|
|
|
compile(project(path: ":common", configuration: "mcpGenerateMod")) {
|
|
transitive = false
|
|
}
|
|
shadow(project(path: ":common", configuration: "mcp")) {
|
|
transitive = false
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
exclude "fabric.mod.json"
|
|
|
|
configurations = [project.configurations.shadow]
|
|
classifier "forge"
|
|
}
|
|
|
|
reobf {
|
|
shadowJar {}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
mavenForge(MavenPublication) {
|
|
artifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}-forge.jar")) {
|
|
builtBy shadowJar
|
|
classifier "forge"
|
|
}
|
|
}
|
|
}
|
|
} |