mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 09:26:00 +03:00
43 lines
1.1 KiB
Groovy
43 lines
1.1 KiB
Groovy
import net.minecraftforge.gradleutils.PomUtils
|
|
|
|
plugins {
|
|
id 'java-library'
|
|
id 'net.minecraftforge.gradleutils'
|
|
}
|
|
|
|
apply from: rootProject.file('build_shared.gradle')
|
|
|
|
dependencies {
|
|
compileOnly(libs.nulls)
|
|
|
|
api(libs.eventbus)
|
|
|
|
implementation(project(':fmlloader'))
|
|
implementation(libs.commons.io)
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(JAVA_VERSION)
|
|
withSourcesJar()
|
|
}
|
|
|
|
tasks.named('jar', Jar).configure {
|
|
manifest {
|
|
attributes([
|
|
'Automatic-Module-Name': 'net.minecraftforge.fmlcore',
|
|
'FMLModType': 'LIBRARY'
|
|
] as LinkedHashMap)
|
|
attributes([
|
|
'Specification-Title': 'FML',
|
|
'Specification-Vendor': 'Forge Development LLC',
|
|
'Specification-Version': '1',
|
|
'Implementation-Title': 'FML',
|
|
'Implementation-Version': '1.0',
|
|
'Implementation-Vendor': 'Forge Development LLC'
|
|
] as LinkedHashMap, 'net/minecraftforge/fml/')
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.compilerArgs << '-Xlint:-unchecked'
|
|
} |