// 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}")
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)