Merge pull request #1581 from HeyaGlitz/develop

Update to Java 8
This commit is contained in:
Lenny McLennington 2023-05-30 14:44:03 +01:00 committed by GitHub
commit 2358e6faa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.9.4) cmake_minimum_required(VERSION 3.9.4)
project(launcher Java) project(launcher Java)
find_package(Java 1.7 REQUIRED COMPONENTS Development) find_package(Java 1.8 REQUIRED COMPONENTS Development)
include(UseJava) include(UseJava)
set(CMAKE_JAVA_JAR_ENTRY_POINT JavaCheck) set(CMAKE_JAVA_JAR_ENTRY_POINT JavaCheck)
set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7 -Xlint:deprecation -Xlint:unchecked) set(CMAKE_JAVA_COMPILE_FLAGS -target 8 -source 8 -Xlint:deprecation -Xlint:unchecked)
set(SRC set(SRC
JavaCheck.java JavaCheck.java

View File

@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.9.4) cmake_minimum_required(VERSION 3.9.4)
project(launcher Java) project(launcher Java)
find_package(Java 1.7 REQUIRED COMPONENTS Development) find_package(Java 1.8 REQUIRED COMPONENTS Development)
include(UseJava) include(UseJava)
set(CMAKE_JAVA_JAR_ENTRY_POINT org.polymc.EntryPoint) set(CMAKE_JAVA_JAR_ENTRY_POINT org.polymc.EntryPoint)
set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7 -Xlint:deprecation -Xlint:unchecked) set(CMAKE_JAVA_COMPILE_FLAGS -target 8 -source 8 -Xlint:deprecation -Xlint:unchecked)
set(SRC set(SRC
org/polymc/EntryPoint.java org/polymc/EntryPoint.java