mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-04-13 09:31:28 +00:00
Java 19 support
This commit is contained in:
parent
668e05a24d
commit
a45f2feb10
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 18. 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 19. Use of development Java versions is not supported." );
|
||||
System.err.println( "*** WARNING *** You may use java -version to double check your Java version." );
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ public class JavaVersion
|
|||
public static final JavaVersion JAVA_16 = new JavaVersion( "Java 16", 60 );
|
||||
public static final JavaVersion JAVA_17 = new JavaVersion( "Java 17", 61 );
|
||||
public static final JavaVersion JAVA_18 = new JavaVersion( "Java 18", 62 );
|
||||
public static final JavaVersion JAVA_19 = new JavaVersion( "Java 19", 63 );
|
||||
//
|
||||
private final String name;
|
||||
private final int version;
|
||||
|
|
Loading…
Add table
Reference in a new issue