Skip to content

Commit

Permalink
Remove unused java11 gradle configuration
Browse files Browse the repository at this point in the history
The java11-specific sources were removed back in opensearch-project#2898 and as far as I
can tell this configuration has been unneeded since that point.

Signed-off-by: Andrew Ross <andrross@amazon.com>
  • Loading branch information
andrross committed Dec 21, 2023
1 parent 2c8ee19 commit bbc7258
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,45 +57,6 @@ sourceSets {
}
}
}
// 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 {
java11Implementation.extendsFrom(api)
}

dependencies {
java11Implementation sourceSets.main.output
}

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

tasks.named('forbiddenApisJava11').configure {
doFirst {
if (BuildParams.runtimeJavaVersion < JavaVersion.VERSION_11) {
targetCompatibility = JavaVersion.VERSION_11
}
}
}

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

dependencies {

Expand Down

0 comments on commit bbc7258

Please sign in to comment.