chore: replace deprecated Gradle configuration APIs#28
Draft
devin-ai-integration[bot] wants to merge 1 commit into
Draft
chore: replace deprecated Gradle configuration APIs#28devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace deprecated Gradle convention properties with the current
javaandapplicationextension APIs while preserving Java 8 compatibility and theHelloentry point.The LaunchDarkly Java server SDK constraint remains
7+: Maven Central and Gradle both resolve it to7.14.0, the latest published release, so no SDK version change is needed. The application uses no deprecated LaunchDarkly SDK APIs.Tested with:
./gradlew clean build --warning-mode allCI=true LAUNCHDARKLY_SDK_KEY=... ./gradlew run --warning-mode all(SDK initialized and evaluatedsample-feature)Link to Devin session: https://app.devin.ai/sessions/8a5b6c5b831f43098bf7440772e83035
Note
Low Risk
Build-only Gradle API updates with no application, dependency, or SDK logic changes.
Overview
Updates Gradle build configuration to silence deprecation warnings without changing runtime behavior.
Java toolchain — Replaces the removed
allprojects { sourceCompatibility / targetCompatibility }block with thejava { }extension andJavaVersion.VERSION_1_8for both source and target, preserving Java 8.Application plugin — Renames
mainClassNametomainClasson theapplicationblock so theHelloentry point stays the same.Dependencies (LaunchDarkly server SDK
7+) and repositories are untouched.Reviewed by Cursor Bugbot for commit 608b4e4. Bugbot is set up for automated code reviews on this repo. Configure here.