From 3a12dc22d6ec3924067c7b32582cb6a1ed113344 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Fri, 26 May 2023 16:15:06 +0200 Subject: Allow JDK_HOME to be set explicitly, required for Kotlin 1.8+ --- src/test/kotlin/com/replaymod/gradle/remap/util/TestData.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/test/kotlin/com') diff --git a/src/test/kotlin/com/replaymod/gradle/remap/util/TestData.kt b/src/test/kotlin/com/replaymod/gradle/remap/util/TestData.kt index d1ed905..06f8788 100644 --- a/src/test/kotlin/com/replaymod/gradle/remap/util/TestData.kt +++ b/src/test/kotlin/com/replaymod/gradle/remap/util/TestData.kt @@ -3,6 +3,7 @@ package com.replaymod.gradle.remap.util import com.replaymod.gradle.remap.Transformer import com.replaymod.gradle.remap.legacy.LegacyMappingSetModelFactory import org.cadixdev.lorenz.MappingSet +import java.io.File import java.net.URL import java.nio.file.Paths import kotlin.io.path.absolutePathString @@ -37,6 +38,7 @@ object TestData { } } } + jdkHome = File(System.getProperty("java.home")) classpath = arrayOf( findClasspathEntry("org.spongepowered.asm.mixin.Mixin"), findClasspathEntry("a.pkg.A"), -- cgit