Skip to content

Commit

Permalink
Database adapters - back to Java 8 (#6995)
Browse files Browse the repository at this point in the history
SIGH, some things depend on Java 8, keeping database-adapter code compatible w/ J8.
  • Loading branch information
snazy committed Jun 6, 2023
1 parent 5c2c151 commit 90fc2dd
Show file tree
Hide file tree
Showing 25 changed files with 55 additions and 24 deletions.
31 changes: 31 additions & 0 deletions build-logic/src/main/kotlin/nessie-conventions-server8.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (C) 2023 Dremio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// Java project, non-client facing, server component, Java 8 (11 for tests)

plugins {
`java-library`
`maven-publish`
signing
id("nessie-common-base")
id("nessie-common-src")
id("nessie-java")
id("nessie-testing")
}

tasks.withType<JavaCompile>().configureEach {
options.release.set(if (this.name == "compileJava") 8 else 11)
}
2 changes: 1 addition & 1 deletion servers/services/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.apache.tools.ant.taskdefs.condition.Os

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
alias(libs.plugins.annotations.stripper)
}
Expand Down
2 changes: 1 addition & 1 deletion servers/store-proto/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.google.protobuf.gradle.ProtobufExtract

plugins {
alias(libs.plugins.nessie.reflectionconfig)
id("nessie-conventions-server")
id("nessie-conventions-server8")
alias(libs.plugins.protobuf)
}

Expand Down
2 changes: 1 addition & 1 deletion servers/store/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
alias(libs.plugins.annotations.stripper)
}
Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/adapter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/bench/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-shadow-jar")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/dynamodb-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/dynamodb/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.apache.tools.ant.taskdefs.condition.Os

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/inmem-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/inmem/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/mongodb-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/mongodb/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.apache.tools.ant.taskdefs.condition.Os

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/nontx-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/nontx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/rocks-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/rocks/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/serialize-proto/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.google.protobuf.gradle.ProtobufExtract

plugins {
alias(libs.plugins.nessie.reflectionconfig)
id("nessie-conventions-server")
id("nessie-conventions-server8")
alias(libs.plugins.protobuf)
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/serialize/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/store/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/testextension/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

plugins { id("nessie-conventions-server") }
plugins { id("nessie-conventions-server8") }

extra["maven.name"] = "Nessie - Versioned - Persist - Testextension"

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

plugins { id("nessie-conventions-server") }
plugins { id("nessie-conventions-server8") }

extra["maven.name"] = "Nessie - Versioned - Persist - Tests"

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/tx-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/persist/tx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.apache.tools.ant.taskdefs.condition.Os

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/spi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-server")
id("nessie-conventions-server8")
id("nessie-jacoco")
}

Expand Down
2 changes: 1 addition & 1 deletion versioned/tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

plugins { id("nessie-conventions-server") }
plugins { id("nessie-conventions-server8") }

extra["maven.name"] = "Nessie - Versioned Store Integration Tests"

Expand Down

0 comments on commit 90fc2dd

Please sign in to comment.