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

Add GroovyDSLImprover #25

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Add GroovyDSLImprover #25

wants to merge 2 commits into from

Conversation

Matyrobbrt
Copy link
Member

This PR makes Compass use (or at least in part) GDI for DSL objects.

Notes

  • As GDI is a Groovy transformer, the DSL classes must be written in Groovy; this lead to the addition of the Groovy plugin and move of all classes from the java folder to the groovy folder. This can be done as Groovy supports cross-compilation with Java.

@Matyrobbrt Matyrobbrt added the enhancement New feature or request label Jul 1, 2023
@marchermans
Copy link
Member

Nice. I approve

@sciwhiz12 sciwhiz12 marked this pull request as ready for review July 10, 2023 16:33
Comment on lines +19 to +20
mavenPom()
gradleMetadata()
Copy link
Member

Choose a reason for hiding this comment

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

What's the reason for this? (There should be a comment here about it.)

Comment on lines +20 to +25
getLauncherManifestURL().convention('https://piston-meta.mojang.com/mc/game/version_manifest_v2.json');
getProductionData().convention(project.layout.projectDirectory.dir('data'))
getProductionDataFormat().convention(MappingIOFormat.ENIGMA_EXPLODED)
getStagingData().convention(project.layout.projectDirectory.dir('staging'))
getStagingDataFormat().convention(MappingIOFormat.ENIGMA_EXPLODED)
getInputs().convention(project.layout.projectDirectory.dir('input'))
Copy link
Member

Choose a reason for hiding this comment

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

I believe these can be modified to access the properties as if they were fields?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants