Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Macro for Java version in Gradle Templates

Discussion in '2022.2 Beta' started by Andrew010110, Nov 2, 2022.

  1. Andrew010110


    Oct 8, 2022
    In pre-Unity 2022.2 versions the Java version has a hard coded Java_8 variable which became a Java_11 variable in 2022.2. Is there a macro that can auto fill the version like how the TargetSDKVersion has a macro replacement?
    Use case being a upm plugin provides a gradle template which was designed for pre Unity 2022.2 versions would be able to remain compatible with the new Java version.