Skip to content

Commit

Permalink
Compile services and SPI for java 8 (#7924)
Browse files Browse the repository at this point in the history
For wider reuse in downstream projects.
  • Loading branch information
dimas-b committed Jan 9, 2024
1 parent 2c92b59 commit 9b8999c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 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-config/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
* limitations under the License.
*/

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

extra["maven.name"] = "Nessie - Services Config"
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")
}

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

0 comments on commit 9b8999c

Please sign in to comment.