]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: bump up JDK version to 1.8 21822/head
authorKefu Chai <kchai@redhat.com>
Fri, 4 May 2018 14:55:43 +0000 (22:55 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 4 May 2018 14:55:44 +0000 (22:55 +0800)
as JDK 7 is EOL. see
http://www.oracle.com/technetwork/java/eol-135779.html and
https://www.java.com/en/download/faq/java_7.xml

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/java/CMakeLists.txt

index b4cb3f84932702bd348d8e9cdc1255c850c5b531..62b5259c9d2c80667f6f461edb0a60356086ac7b 100644 (file)
@@ -21,7 +21,7 @@ set(java_srcs
 #   warning: [options] bootstrap class path not set in conjunction with -source 1.7
 # as per
 #   https://blogs.oracle.com/darcy/entry/bootclasspath_older_source
-set(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.7" "-target" "1.7" "-Xlint:-options")
+set(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.8" "-target" "1.8" "-Xlint:-options")
 set(jni_header_dir "${CMAKE_CURRENT_BINARY_DIR}/native")
 if(CMAKE_VERSION VERSION_LESS 3.11)
   set(CMAKE_JAVA_COMPILE_FLAGS ${CMAKE_JAVA_COMPILE_FLAGS} "-h" ${jni_header_dir})