Skip to content

Commit 43f7704

Browse files
committed
fix: disable test build
1 parent df721ad commit 43f7704

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

fabric/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ base {
1414
archivesName = "${mod_id}-${minecraft_version}-fabric"
1515
}
1616

17+
test {
18+
//for some reason fabric discovers a test directory, but because none exists, it then does not find tests and fails.
19+
failOnNoDiscoveredTests = false
20+
}
21+
1722
dependencies {
1823
minecraft "com.mojang:minecraft:${minecraft_version}"
1924

forge/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ repositories {
117117
mavenCentral()
118118
}
119119

120+
//Disable test compilation as a) we are not using tests and b) it fails due to not being able to access jei in common
121+
compileTestJava {
122+
enabled = false
123+
}
124+
120125
tasks.withType(JavaCompile).configureEach {
121126
source(project(":common").sourceSets.main.allSource)
122127
}

neo/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ dependencies {
8181
jarJar(group: 'org.commonmark', name: 'commonmark-ext-ins', version: "[${commonmark_version},)")
8282
}
8383

84+
//Disable test compilation as a) we are not using tests and b) it fails due to not being able to access jei in common
85+
compileTestJava {
86+
enabled = false
87+
}
88+
8489
// NeoGradle compiles the game, but we don't want to add our common code to the game's code
8590
TaskCollection.metaClass.excludingNeoTasks = { ->
8691
delegate.matching { !it.name.startsWith("neo") }

0 commit comments

Comments
 (0)