mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-04-13 09:31:28 +00:00
Java 21 support
This commit is contained in:
parent
2836244c75
commit
1072dcfdec
2 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@ public class Bootstrap
|
|||
|
||||
if ( javaVersion.isUnknown() )
|
||||
{
|
||||
System.err.println( "*** WARNING *** Unsupported Java detected (" + System.getProperty( "java.class.version" ) + "). BuildTools has only been tested up to Java 20. Use of development Java versions is not supported." );
|
||||
System.err.println( "*** WARNING *** Unsupported Java detected (" + System.getProperty( "java.class.version" ) + "). BuildTools has only been tested up to Java 21. Use of development Java versions is not supported." );
|
||||
System.err.println( "*** WARNING *** You may use java -version to double check your Java version." );
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ public class JavaVersion
|
|||
public static final JavaVersion JAVA_18 = new JavaVersion( "Java 18", 62 );
|
||||
public static final JavaVersion JAVA_19 = new JavaVersion( "Java 19", 63 );
|
||||
public static final JavaVersion JAVA_20 = new JavaVersion( "Java 20", 64 );
|
||||
public static final JavaVersion JAVA_21 = new JavaVersion( "Java 21", 65 );
|
||||
//
|
||||
private final String name;
|
||||
private final int version;
|
||||
|
|
Loading…
Add table
Reference in a new issue