chore: buildscript cleanup #1166
No reviewers
Labels
No labels
Area-Assets
Area-Backend
Area-Conduits
Area-Datapacks
Area-Lang
Area-Mod Compat
Area-Parity
Area-Rendering
Good first issue
MC-1.19.2
MC-1.20.1
MC-1.20.4
MC-1.20.6
MC-1.21
MC-1.21.1
Modtoberfest
P-0-High
P-1-Medium
P-2-Low
Status-Awaiting Response
Status-Behind-Flag
Status-Blocked
Status-Cannot Reproduce
Status-Duplicate
Status-Help Wanted
Status-Incomplete Report
Status-Invalid
Status-Needs LTS Backport
Status-Needs Updating
Status-Stale
Status-To Implement
Status-Triage
Status-Wontfix
Status-Wontmerge
Type-Backport
Type-Bug
Type-Documentation
Type-Enhancement
Type-Question
Type-RFC
Type-Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Team-EnderIO/EnderIO#1166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/clean-buildscript"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
clean gradle buildscript for readability and consistency
Checklist
Summary by CodeRabbit
Walkthrough
PR updates Gradle build logic: consolidates and extends configurations (including gametest and datagen), adds a new localRuntime and wiring, removes explicit Java 21 toolchains in selected modules, changes getReleaseType() to return non-null with revised parsing, tweaks tag version extraction in buildSrc, and enables Gradle build cache.
Changes
build.gradle.kts,enderio/build.gradle.kts(...two occurrences),enderio-endergy/build.gradle.kts,enderio-modded-conduits/build.gradle.ktsgetReleaseType()fromString?toString; normalise env var once; usecontains("alpha"/"beta"); return"release"when set but unmatched, else"dev". Variable renamedversion_string→versionString.enderio/build.gradle.kts,enderio-endergy/build.gradle.kts,enderio-armory/build.gradle.kts,enderio-modded-conduits/build.gradle.ktsconfigurations { ... }; addlocalRuntimeand extendruntimeClasspath; add/wiregametest*configs and dependency; add/wiredatagen*in relevant modules; migrate existing extendsFrom/exclusions into the block; relocategametestImplementationretrieval where applicable.endercore/build.gradle.kts,enderio-armory/build.gradle.kts,enderio-modded-conduits/build.gradle.ktsbuildSrc/src/main/kotlin/mod-common-conventions.gradle.ktsversionRegex; maketagVersionan immutablevalusing inlineRegexondetails.lastTag.gradle.propertiesorg.gradle.build-cache=true.Sequence Diagram(s)
Estimated code review effort
🎯 4 (Complex) | ⏱️ ~60 minutes
Suggested labels
MC-1.21.1Poem
Pre-merge checks and finishing touches
❌ Failed checks (2 warnings)
@coderabbitai generate docstringsto improve docstring coverage.✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
chore/clean-buildscript📜 Recent review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between
bd7d0477d4and1517687ddd.📒 Files selected for processing (8)
build.gradle.kts(1 hunks)buildSrc/src/main/kotlin/mod-common-conventions.gradle.kts(1 hunks)endercore/build.gradle.kts(0 hunks)enderio-armory/build.gradle.kts(2 hunks)enderio-endergy/build.gradle.kts(2 hunks)enderio-modded-conduits/build.gradle.kts(3 hunks)enderio/build.gradle.kts(3 hunks)gradle.properties(1 hunks)💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands and usage tips.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.