-
-
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
Conversation
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.
Pull Request Overview
This PR adds a CircleCI configuration file to enable CI/CD pipelines for the project. However, the configuration contains several critical issues that will prevent it from working correctly with the existing Gradle Kotlin DSL project setup.
- Adds CircleCI 2.1 configuration with a build job using OpenJDK 21
- Implements Gradle dependency caching based on build file checksums
- Defines a workflow to execute build tasks
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - ~/.gradle | ||
| key: v1-dependencies-{{ checksum "build.gradle" }} | ||
|
|
||
| - run: gradle 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 test command runs gradle test, but based on the existing GitHub Actions workflow and the project's build configuration, it should run ./gradlew shadowJar to build the application artifact. The shadowJar task is the primary build task that creates the deployable JAR file.
| - run: gradle test | |
| - run: ./gradlew shadowJar |
| workflows: | ||
| build: | ||
| jobs: | ||
| - shadowJar No newline at end of file |
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 |
| - v1-dependencies-{{ checksum "build.gradle" }} | ||
| - v1-dependencies- | ||
|
|
||
| - run: gradle dependencies | ||
|
|
||
| - save_cache: | ||
| paths: | ||
| - ~/.gradle | ||
| key: v1-dependencies-{{ checksum "build.gradle" }} |
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 cache key uses build.gradle, but this project uses build.gradle.kts (Kotlin DSL). Update the checksum references to use build.gradle.kts instead to ensure proper cache invalidation when the build file changes.
| - run: gradle dependencies | ||
|
|
||
| - save_cache: | ||
| paths: | ||
| - ~/.gradle | ||
| key: v1-dependencies-{{ checksum "build.gradle" }} | ||
|
|
||
| - run: gradle 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 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 |
Description
How Has This Been Tested?