DEV Community

Query Filter
Query Filter

Posted on

docker119

// Force the path injection into the JVM System Properties immediately
def java8Path = "C:/Program Files/Java/jdk1.8.0_321" 
def java21Path = "C:/Program Files/JetBrains/IntelliJ IDEA 2024.3.3 Community Edition/jbr"

System.setProperty("org.gradle.java.installations.paths", "${java8Path},${java21Path}")

// Optional: Also set it as a Gradle property for redundancy
settings.extensions.extraProperties.set("org.gradle.java.installations.paths", "${java8Path},${java21Path}")
Enter fullscreen mode Exit fullscreen mode

Top comments (0)