mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:38:09 +00:00
5d020170ff
* Lower build requirement from Java 14+ to Java 11+ Avoid use of -Werror -Xlint:all, which may change significantly across java releases (new warnings could be added). Instead, just list the warnings individually. Workaround JDK 11 compiler bug (JDK-8209058) that only impacts test fixture code in the build itself. Signed-off-by: Robert Muir <rmuir@apache.org> * Disable warning around -source 7 -release 7 for java version checker The java version checker triggers some default warnings because it targets java7: ``` > Task :distribution:tools:java-version-checker:compileJava FAILED warning: [options] source value 7 is obsolete and will be removed in a future release warning: [options] target value 7 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. error: warnings found and -Werror specified ``` Suppress this warning explicitly for this module. Signed-off-by: Robert Muir <rmuir@apache.org> * more java14 -> java11 cleanup Signed-off-by: Robert Muir <rmuir@apache.org> Co-authored-by: Robert Muir <rmuir@apache.org>
20 lines
580 B
Properties
20 lines
580 B
Properties
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# The OpenSearch Contributors require contributions made to
|
|
# this file be licensed under the Apache-2.0 license or a
|
|
# compatible open source license.
|
|
#
|
|
# Modifications Copyright OpenSearch Contributors. See
|
|
# GitHub history for details.
|
|
#
|
|
|
|
# This .properties file defines the versions of Java with which to
|
|
# build and test OpenSearch for this branch. Valid Java versions
|
|
# are 'java' or 'openjdk' followed by the major release number.
|
|
|
|
OPENSEARCH_BUILD_JAVA=openjdk11
|
|
OPENSEARCH_RUNTIME_JAVA=java8
|
|
GRADLE_TASK=build
|
|
GRADLE_EXTRA_ARGS=
|