Skip to content

fix: upgrade build JVM to Java 17 - #10

Merged
kolod merged 2 commits into
mainfrom
fix/java17-build
Jun 8, 2026
Merged

fix: upgrade build JVM to Java 17#10
kolod merged 2 commits into
mainfrom
fix/java17-build

Conversation

@kolod

@kolod kolod commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Change CI from java-version: "8" to "17" so Gradle can load dependency-check-gradle:12.2.2 and Kotlin 2.4.0, both of which require JVM 11+
  • Production output bytecode is unchanged — sourceCompatibility = JavaVersion.VERSION_1_8 and JvmTarget.JVM_1_8 in build.gradle.kts remain in place

Test plan

  • CI build completes successfully on all three platforms
  • Produced JAR runs on Java 8

🤖 Generated with Claude Code

kolod and others added 2 commits June 8, 2026 17:41
Signed-off-by: Oleksandr Kolodkin <oleksandr.kolodkin@ukr.net>
OWASP dependency-check-gradle 12.2.2 and Kotlin 2.4.0 both require
JVM 11+. Output bytecode target remains Java 8 via sourceCompatibility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 8, 2026 15:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the build/CI environment to use a newer JVM (Java 17) while keeping the project’s compiled bytecode target at Java 8, enabling Gradle to load newer plugins (e.g., dependency-check 12.2.2 and Kotlin 2.4.0).

Changes:

  • Added Gradle wrapper hardening settings (networkTimeout, validateDistributionUrl) in gradle-wrapper.properties.
  • Updated GitHub Actions workflow to install/build with JDK 17 instead of JDK 8.
  • Adjusted the OWASP dependency-check invocation flags in CI.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
gradle/wrapper/gradle-wrapper.properties Adds wrapper configuration to improve wrapper download behavior and URL validation.
.github/workflows/github-actions-java8.yml Switches CI build JVM to Java 17 and tweaks dependency-check execution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 68 to +70
- name: Run OWASP dependency check
if: matrix.os == 'windows-latest' # Only run on one platform
run: ./gradlew dependencyCheckAnalyze --no-daemon --stacktrace --continue
run: ./gradlew dependencyCheckAnalyze --no-daemon --stacktrace
@kolod
kolod merged commit 5cf2b8e into main Jun 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants