// 1. Define your paths (Ensure forward slashes for Windows compatibility)
def java8Path = "C:/Program Files/Java/jdk1.8.0_321"
def java21Path = "C:/Program Files/JetBrains/IntelliJ IDEA 2024.3.3 Community Edition/jbr"
def combinedPaths = "${java8Path},${java21Path}"
// 2. Inject directly into System Properties for the JVM
System.setProperty("org.gradle.java.installations.paths", combinedPaths)
// 3. Inject into Gradle's project properties without using the 'settings' keyword
project.ext["org.gradle.java.installations.paths"] = combinedPaths
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)