Skip to content

Commit

Permalink
[CALCITE-6174] Remove property from gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
snuyanzin committed May 23, 2024
1 parent 1a6573f commit 9bcb7be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ tasks.withType<AutostyleTask>().configureEach {
mustRunAfter(javaCCTest)
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
ide {
fun generatedSource(javacc: TaskProvider<org.apache.calcite.buildtools.javacc.JavaCCTask>, sourceSet: String) =
generatedJavaSources(javacc.get(), javacc.get().output.get().asFile, sourceSets.named(sourceSet))
Expand Down
4 changes: 0 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,3 @@ xercesImpl.version=2.9.1
systemProp.sonar.organization=apache
systemProp.sonar.projectKey=apache_calcite
systemProp.sonar.host.url=https://sonarcloud.io

# Default behavior before Gradle 8.x
# according to https://kotlinlang.org/docs/gradle-configure-project.html#check-for-jvm-target-compatibility-of-related-compile-tasks
kotlin.jvm.target.validation.mode = WARNING
6 changes: 6 additions & 0 deletions testkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ dependencies {
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit5"))
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}

0 comments on commit 9bcb7be

Please sign in to comment.