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

Kotlin Gradle #4831

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

Conversation

RickyTheRacc
Copy link
Contributor

Type of change

  • Bug fix
  • New feature

Description

Changes the main project and subproject to use the Kotlin Gradle DSL, slightly faster build times and an overall easier to read file

Related issues

N/A

How Has This Been Tested?

Worked in both the runClient fabric task as well as the default Minecraft Client configuration by the mcdev plugin, built jar works when tested on a new Prism 1.21.1 instance

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

Few things left to run by crosby or mimgam tomorrow :3
Crosby my goat
Somehow failing to fetch stuff from modrinth maven?
‼️‼️‼️‼️‼️
Include only includes stuff in the jar, but it's not present in dev environments, so we need to use modImplementation so it knows to include there
Apparently it needs both outside a dev environment! Look at me testing all the stuff :D
@GreemDev
Copy link

based pr tbh

@RickyTheRacc
Copy link
Contributor Author

this is completely pointless lmfao

Small upsides, maybe, but not pointless? The build times are faster, and Kotlin gives more robust errors and is often easier to comprehend for new devs who already started on Java because its syntax is much stricter. If you have any legit concerns though I'm glad to listen ^^

@RacoonDog
Copy link
Contributor

slightly faster build times and an overall easier to read file

this is completely pointless lmfao

anything that removes groovy dsl will never be pointless


jar {
from("LICENSE") {
rename{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a space (rename {) and make into single line, like in the shadowJar task

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.

3 participants