-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added support for applying Parchment parameter name mappings and Javadoc * Docs * Docs change --------- Co-authored-by: Matyrobbrt <[email protected]>
- Loading branch information
1 parent
8708fb2
commit a848ee5
Showing
7 changed files
with
279 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 91 additions & 13 deletions
104
.../src/main/java/net/neoforged/gradle/common/extensions/subsystems/SubsystemsExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
...on/src/main/groovy/net/neoforged/gradle/dsl/common/extensions/subsystems/Parchment.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package net.neoforged.gradle.dsl.common.extensions.subsystems | ||
|
||
import groovy.transform.CompileStatic | ||
import net.minecraftforge.gdi.ConfigurableDSLElement | ||
import net.minecraftforge.gdi.annotations.DSLProperty | ||
import org.gradle.api.provider.Property | ||
import org.gradle.api.tasks.Input | ||
import org.gradle.api.tasks.Internal | ||
import org.gradle.api.tasks.Optional | ||
|
||
/** | ||
* Allows configuration of Parchment mappings for userdev. | ||
*/ | ||
@CompileStatic | ||
interface Parchment extends ConfigurableDSLElement<Parchment> { | ||
|
||
/** | ||
* Artifact coordinates for parchment mappings. | ||
*/ | ||
@Input | ||
@Optional | ||
@DSLProperty | ||
Property<String> getParchmentArtifact(); | ||
|
||
/** | ||
* Minecraft version of parchment to use. This property is | ||
* ignored if {@link #getParchmentArtifact()} is set explicitly. | ||
*/ | ||
@Input | ||
@Optional | ||
@DSLProperty | ||
Property<String> getMinecraftVersion(); | ||
|
||
/** | ||
* Mapping version of default parchment to use. This property is | ||
* ignored if {@link #getParchmentArtifact()} is set explicitly. | ||
*/ | ||
@Input | ||
@Optional | ||
@DSLProperty | ||
Property<String> getMappingsVersion(); | ||
|
||
/** | ||
* Artifact coordinates for the tool used to apply the mappings. Overriding this is an advanced use case. | ||
*/ | ||
@Input | ||
@Optional | ||
@DSLProperty | ||
Property<String> getToolArtifact(); | ||
|
||
/** | ||
* If enabled (the default), the parchment repository will automatically be added to the project, | ||
* if {@link #getEnabled()} is true. | ||
*/ | ||
@Internal | ||
@DSLProperty | ||
Property<Boolean> getAddRepository(); | ||
|
||
/** | ||
* Enables or disables the system. It is enabled by default if a {@link #getParchmentArtifact()} is specified. | ||
*/ | ||
@Input | ||
@DSLProperty | ||
Property<Boolean> getEnabled(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.