Skip to content

Commit

Permalink
Remove unused java11 gradle configuration from lib/core (opensearch-p…
Browse files Browse the repository at this point in the history
…roject#11665)

This is the same unused java11 configuration that was removed from the
server module in opensearch-project#11661.

Signed-off-by: Andrew Ross <andrross@amazon.com>
  • Loading branch information
andrross committed Dec 22, 2023
1 parent fe46dde commit f92f846
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions libs/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,45 +36,6 @@ base {
archivesName = 'opensearch-core'
}

// we want to keep the JDKs in our IDEs set to JDK 8 until minimum JDK is bumped to 11 so we do not include this source set in our IDEs
if (!isEclipse) {
sourceSets {
java11 {
java {
srcDirs = ['src/main/java11']
}
}
}

configurations {
java11Compile.extendsFrom(compile)
}

dependencies {
java11Implementation sourceSets.main.output
}

compileJava11Java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

forbiddenApisJava11 {
if (BuildParams.runtimeJavaVersion < JavaVersion.VERSION_11) {
targetCompatibility = JavaVersion.VERSION_11
}
replaceSignatureFiles 'jdk-signatures'
}

jar {
metaInf {
into 'versions/11'
from sourceSets.java11.output
}
manifest.attributes('Multi-Release': 'true')
}
}

dependencies {
api project(':libs:opensearch-common')

Expand Down

0 comments on commit f92f846

Please sign in to comment.