Skip to content

Commit

Permalink
[CALCITE-6141] Add jdk8.checkstyle property, use jdk8.checkstyle
Browse files Browse the repository at this point in the history
…in case of java 8
  • Loading branch information
snuyanzin authored and F21 committed Nov 28, 2023
1 parent 7caf7e0 commit b97b819
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon tasks build javadoc -Pcheckstyle.version=9.3
./gradlew --no-parallel --no-daemon tasks build javadoc
linux-jdk8-avatica:
name: 'Linux (JDK 8), Avatica main'
Expand All @@ -74,7 +74,7 @@ jobs:
fetch-depth: 50
- name: 'Install Avatica to Maven Local'
run: |
./gradlew publishToMavenLocal -Pcalcite.avatica.version=1.0.0-dev-main -PskipJavadoc -Pcheckstyle.version=9.3
./gradlew publishToMavenLocal -Pcalcite.avatica.version=1.0.0-dev-main -PskipJavadoc
- name: 'Test Calcite'
run: |
git clone --depth 100 https://github.com/apache/calcite.git ../calcite
Expand Down
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ allprojects {
if (!skipCheckstyle) {
apply<CheckstylePlugin>()
dependencies {
checkstyle("com.puppycrawl.tools:checkstyle:${"checkstyle".v}")
val checkstyleVersion = if (JavaVersion.current() == JavaVersion.VERSION_1_8)
"jdk8.checkstyle".v else "checkstyle".v
checkstyle("com.puppycrawl.tools:checkstyle:$checkstyleVersion")
}
checkstyle {
// Current one is ~8.8
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ org.owasp.dependencycheck.version=5.2.2
# Tools
checkerframework.version=3.10.0
checkstyle.version=10.3.2
jdk8.checkstyle.version=9.3
spotbugs.version=3.1.11

asm.version=7.1
Expand Down

0 comments on commit b97b819

Please sign in to comment.