48 lignes
1.0 KiB
Groovy
48 lignes
1.0 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'net.neoforged.moddev' version '2.0.142'
|
|
}
|
|
|
|
version = project.mod_version
|
|
group = project.mod_group_id
|
|
base { archivesName = "${project.mod_id}-neoforge-1.21.1" }
|
|
|
|
java { toolchain { languageVersion = JavaLanguageVersion.of(21) } }
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { name = 'NeoForged'; url = 'https://maven.neoforged.net/releases' }
|
|
}
|
|
|
|
neoForge {
|
|
version = project.neoforge_version
|
|
runs {
|
|
client {
|
|
client()
|
|
// Pseudo de test hors ligne (aucun compte Microsoft)
|
|
programArguments.addAll '--username', 'GastinelTest', '--width', '1600', '--height', '900'
|
|
}
|
|
}
|
|
mods {
|
|
"${project.mod_id}" {
|
|
sourceSet sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation platform('org.junit:junit-bom:5.11.4')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging { events 'passed', 'failed'; exceptionFormat 'full' }
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
options.release = 21
|
|
}
|