Skip to content

build: depend on :common properly#371

Merged
MattSturgeon merged 1 commit intoMinecraftFreecam:stonecutterfrom
MattSturgeon:stonecutter-project-deps
Mar 22, 2026
Merged

build: depend on :common properly#371
MattSturgeon merged 1 commit intoMinecraftFreecam:stonecutterfrom
MattSturgeon:stonecutter-project-deps

Conversation

@MattSturgeon
Copy link
Member

@MattSturgeon MattSturgeon commented Mar 22, 2026

Apparently setting group in gradle buildscripts has a bunch of undocumented pitfalls, that in our case confuse gradle and lead to unexpected dependency cycles when projects depend on other projects.

I was working around that by depending on :common's sources, instead of the project's build artifacts.

Dropping group = meta.group in the convention plugin allows us to use a "normal" project dependency in the loader convention. This should mean that :common is compiled once, and the resulting classes are re-used by loader projects.

Apparently setting `group` in gradle buildscripts has a bunch of
undocumented pitfalls, that in our case confuse gradle and lead to
unexpected dependency cycles when projects depend on other projects.
@MattSturgeon MattSturgeon merged commit e40a939 into MinecraftFreecam:stonecutter Mar 22, 2026
10 checks passed
@MattSturgeon MattSturgeon deleted the stonecutter-project-deps branch March 22, 2026 14:21
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.

1 participant