Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. 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

    Andrew010110

    Joined:
    Oct 8, 2022
    Posts:
    18
    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.