Skip to content
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

Overhaul build system for proper subproject dependency wiring #3953

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

AnttiMK
Copy link
Contributor

@AnttiMK AnttiMK commented Jan 24, 2025

Your checklist for this pull request

🚨 Please review the guidelines for contributing to this repository.

  • Make sure your name is added to Contributors file /Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/html/Contributors.java
  • If PR:ing locale changes also add a LangCode with your name /Plan/common/src/main/java/com/djrapitops/plan/settings/locale/LangCode.java

Description

The biggest change this PR aims to achieve is to rip out the inherently binding and index-crippling shadowJar dependency declaration between modules, and instead use proper library configuration and dependency declaration by doing the necessary configuration changes in build files and PAL.

I'm also trying get rid of some deprecations, do lazy evaluation of stuff etc. modern Gradle things, and remove all configurations from the root project (especially "java-library"). Also looking to convert to kotlin since that seems to be the standard nowadays, but I might just CBA.

Done so far (some might be waiting for git push)

  • Lazy registration of custom tasks
  • Removed most deprecations
  • Updated checkstyle and made it happy
  • Removed most plugin configurations from root project (not a java project anymore, yay!)
  • Implanted test fixtures to common module
  • Moved some test utilities and mocks to testFixtures source set to be consumed by platform modules
  • Started work on finding correct scopes for each dependency now that shadow is gone (a lot of work)

todo

@AnttiMK AnttiMK changed the title Miscellaneous build improvements, round 2 Overhaul build system for proper subproject dependency wiring Jan 25, 2025
@AuroraLS3
Copy link
Collaborator

I'd appreciate if Kotlin was not introduced since I'm not familiar with it. :)

@AnttiMK AnttiMK force-pushed the chore/build-improvements branch from 2097e15 to 973ba8d Compare January 26, 2025 05:32
@AnttiMK AnttiMK marked this pull request as ready for review January 26, 2025 05:53
@AnttiMK
Copy link
Contributor Author

AnttiMK commented Jan 26, 2025

Waiting for the PAL artifact so can run CI 🤞🏼

@AnttiMK AnttiMK marked this pull request as draft January 26, 2025 10:29
@AnttiMK AnttiMK marked this pull request as ready for review January 26, 2025 11:04
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.

2 participants