mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 11:26:10 +03:00
83 lines
2.2 KiB
Groovy
83 lines
2.2 KiB
Groovy
import net.minecraftforge.gradleutils.PomUtils
|
|
|
|
plugins {
|
|
id 'java-library'
|
|
id 'net.minecraftforge.gradleutils'
|
|
}
|
|
|
|
apply from: rootProject.file('build_shared.gradle')
|
|
|
|
configurations.forEach{ it.transitive = false }
|
|
|
|
dependencies {
|
|
compileOnly(libs.nulls)
|
|
|
|
api(libs.bundles.asm) // Needed by all the black magic
|
|
api(libs.forgespi)
|
|
api(libs.mergetool.api)
|
|
api(libs.log4j.api)
|
|
api(libs.slf4j.api)
|
|
api(libs.guava)
|
|
api(libs.gson)
|
|
api(libs.maven.artifact)
|
|
api(libs.apache.commons)
|
|
api(libs.bundles.night.config)
|
|
api(libs.modlauncher)
|
|
api(libs.coremods)
|
|
api(libs.mojang.logging)
|
|
api(libs.jarjar.selector)
|
|
api(libs.jarjar.meta)
|
|
|
|
implementation(libs.jopt.simple)
|
|
implementation(libs.securemodules)
|
|
implementation(libs.accesstransformers)
|
|
implementation(libs.terminalconsoleappender)
|
|
implementation(libs.jimfs)
|
|
|
|
implementation(libs.log4j.core)
|
|
annotationProcessor(libs.bundles.log4j)
|
|
|
|
testCompileOnly(libs.nulls)
|
|
testRuntimeOnly(libs.bootstrap)
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(JAVA_VERSION)
|
|
withSourcesJar()
|
|
}
|
|
|
|
tasks.named('jar', Jar).configure {
|
|
manifest {
|
|
attributes([
|
|
'Automatic-Module-Name': 'net.minecraftforge.fmlloader',
|
|
'Forge-Module-Layer': 'boot'
|
|
] as LinkedHashMap)
|
|
attributes([
|
|
'Specification-Title': 'FMLLoader',
|
|
'Specification-Vendor': 'Forge Development LLC',
|
|
'Specification-Version': '1',
|
|
'Implementation-Title': 'FMLLoader',
|
|
'Implementation-Vendor': 'Forge Development LLC',
|
|
'Implementation-Version': FORGE_VERSION
|
|
] as LinkedHashMap, 'net/minecraftforge/fml/loading/')
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.compilerArgs << '-Xlint:-unchecked'
|
|
}
|
|
|
|
tasks.register('writeForgeVersionJson') {
|
|
doLast {
|
|
file('src/main/resources/forge_version.json').json = [
|
|
forge: FORGE_VERSION,
|
|
mc: MC_VERSION,
|
|
mcp: MCP_VERSION
|
|
]
|
|
}
|
|
}
|
|
|
|
tasks.named('generateResources').configure {
|
|
dependsOn('writeForgeVersionJson')
|
|
}
|