-
-
Notifications
You must be signed in to change notification settings - Fork 0
circleci-project-setup #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,32 @@ | ||||||||||||||||||||||||||||||||||||||
| version: 2.1 | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||
| build: | ||||||||||||||||||||||||||||||||||||||
| docker: | ||||||||||||||||||||||||||||||||||||||
| - image: cimg/openjdk:21.0.9 | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| environment: | ||||||||||||||||||||||||||||||||||||||
| JVM_OPTS: -Xmx3200m | ||||||||||||||||||||||||||||||||||||||
| TERM: dumb | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||
| - checkout | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| - restore_cache: | ||||||||||||||||||||||||||||||||||||||
| keys: | ||||||||||||||||||||||||||||||||||||||
| - v1-dependencies-{{ checksum "build.gradle" }} | ||||||||||||||||||||||||||||||||||||||
| - v1-dependencies- | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| - run: gradle dependencies | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| - save_cache: | ||||||||||||||||||||||||||||||||||||||
| paths: | ||||||||||||||||||||||||||||||||||||||
| - ~/.gradle | ||||||||||||||||||||||||||||||||||||||
| key: v1-dependencies-{{ checksum "build.gradle" }} | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| - run: gradle test | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
| - run: gradle test | |
| - run: ./gradlew shadowJar |
Copilot
AI
Nov 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The configuration uses gradle directly instead of the Gradle wrapper (./gradlew). For consistency with the existing GitHub Actions workflow and to ensure the correct Gradle version is used, these commands should use ./gradlew instead.
| - run: gradle dependencies | |
| - save_cache: | |
| paths: | |
| - ~/.gradle | |
| key: v1-dependencies-{{ checksum "build.gradle" }} | |
| - run: gradle test | |
| - run: ./gradlew dependencies | |
| - save_cache: | |
| paths: | |
| - ~/.gradle | |
| key: v1-dependencies-{{ checksum "build.gradle" }} | |
| - run: ./gradlew test |
Copilot
AI
Nov 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow references the job shadowJar, but the only defined job is named build. This mismatch will cause the workflow to fail. Change shadowJar to build to reference the correct job.
| - shadowJar | |
| - build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cache key uses
build.gradle, but this project usesbuild.gradle.kts(Kotlin DSL). Update the checksum references to usebuild.gradle.ktsinstead to ensure proper cache invalidation when the build file changes.