Skip to content

Commit

Permalink
make gc-base gc-iceberg compatible with java8
Browse files Browse the repository at this point in the history
  • Loading branch information
ajantha-bhat committed Jul 3, 2023
1 parent 9cd87c1 commit 9f7f29d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions build-logic/src/main/kotlin/nessie-conventions-iceberg8.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.kotlin.dsl.withType

/*
* 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 using Apache Iceberg, 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 gc/gc-base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("nessie-conventions-iceberg")
id("nessie-conventions-iceberg8")
id("nessie-jacoco")
}

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

plugins {
id("nessie-conventions-iceberg")
id("nessie-conventions-iceberg8")
id("nessie-jacoco")
}

Expand Down

0 comments on commit 9f7f29d

Please sign in to comment.