aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-27 17:13:23 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-27 17:13:23 +0100
commit312dffe044d3b11d0a89c286d9651b0f5b1281c7 (patch)
tree8d072cdb38abc5bb5921397f5a5fb94ec1372d41 /build.gradle.kts
parentc41488139136c213fd5d799523da5f318a0014a2 (diff)
downloadFirmament-312dffe044d3b11d0a89c286d9651b0f5b1281c7.tar.gz
Firmament-312dffe044d3b11d0a89c286d9651b0f5b1281c7.tar.bz2
Firmament-312dffe044d3b11d0a89c286d9651b0f5b1281c7.zip
test: Make all minecraft methods public during testing
This is meant to fix minecraft failing to access package private methods of itself due to changes in naming
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 05912a7..1d5478f 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -214,6 +214,9 @@ val hotswap by configurations.creating {
val nonModImplentation by configurations.creating {
configurations.implementation.get().extendsFrom(this)
}
+val testAgent by configurations.creating {
+ isVisible = false
+}
val configuredSourceSet = createIsolatedSourceSet("configured",
@@ -306,6 +309,7 @@ dependencies {
testImplementation("io.kotest:kotest-runner-junit5:6.0.0.M1")
+ testAgent(project(":testagent", configuration = "shadow"))
implementation(project(":symbols"))
ksp(project(":symbols"))
@@ -371,11 +375,13 @@ tasks.test {
val wd = file("build/testWorkDir")
workingDir(wd)
dependsOn(downloadTestRepo)
+ dependsOn(testAgent)
doFirst {
wd.mkdirs()
wd.resolve("config").deleteRecursively()
systemProperty("firmament.testrepo",
downloadTestRepo.flatMap { it.outputDirectory.asFile }.map { it.absolutePath }.get())
+ jvmArgs("-javaagent:${testAgent.singleFile.absolutePath}")
}
systemProperty("jdk.attach.allowAttachSelf", "true")
jvmArgs("-XX:+EnableDynamicAgentLoading")