Skip to content

Ability to add version specific properties - #27

Draft
ALongStringOfNumbers wants to merge 1 commit into
GTNewHorizons:mc1.12.2from
ALongStringOfNumbers:alson-versioned-props
Draft

Ability to add version specific properties#27
ALongStringOfNumbers wants to merge 1 commit into
GTNewHorizons:mc1.12.2from
ALongStringOfNumbers:alson-versioned-props

Conversation

@ALongStringOfNumbers

Copy link
Copy Markdown
Contributor

Adds the ability to defined version specific properties.

Properties can now be defined as 1.7.10 or 1.12.2 only, with the default of "" allowing all versions.

Properties that do not match with the version will not be parsed, and will not be added into properties.gradle on automatic update.

}
final String mcVersion = prop.mcVersion();
if (!mcVersion.isEmpty()) {
if (!GTNHGradlePlugin.MinecraftVersion.isAcceptableMinecraftVersion(mcVersion)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This class is loaded in an isolated classloader during the update process, so it shouldn't use the GTNHGradlePlugin class at all or it will crash the script updater. Moving MinecraftVersion to not be an inner class and making sure it doesn't have any gradle or other library dependencies would be required to use it here

@serenibyss
serenibyss marked this pull request as draft April 21, 2025 07: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