This commit is contained in:
parent
50b02952c5
commit
5a6b2e2cac
23 changed files with 809 additions and 227 deletions
14
build.gradle
14
build.gradle
|
|
@ -26,6 +26,7 @@ sourceSets.main.resources {
|
|||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
// Add here additional repositories if required by some of the dependencies below.
|
||||
}
|
||||
|
||||
|
|
@ -104,6 +105,10 @@ dependencies {
|
|||
// For all intends and purposes: You can treat this dependency as if it is a normal library you would use.
|
||||
implementation "net.neoforged:neoforge:${neo_version}"
|
||||
|
||||
testImplementation platform('org.junit:junit-bom:5.11.4')
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter'
|
||||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||
|
||||
// Example optional mod dependency with JEI
|
||||
// The JEI API is declared for compile time use, while the full JEI artifact is used at runtime
|
||||
// compileOnly "mezz.jei:jei-${mc_version}-common-api:${jei_version}"
|
||||
|
|
@ -167,6 +172,15 @@ tasks.withType(JavaCompile).configureEach {
|
|||
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
|
||||
}
|
||||
|
||||
tasks.named('test', Test).configure {
|
||||
useJUnitPlatform()
|
||||
// Keep NeoForge/Log4j test output inside the ignored build directory.
|
||||
workingDir = layout.buildDirectory.dir('test-work').get().asFile
|
||||
doFirst {
|
||||
workingDir.mkdirs()
|
||||
}
|
||||
}
|
||||
|
||||
// IDEA no longer automatically downloads sources/javadoc jars for dependencies, so we need to explicitly enable the behavior.
|
||||
idea {
|
||||
module {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue