This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an options closure to enable and disable parts of CurseGradle
- Loading branch information
1 parent
c7181bb
commit 2506386
Showing
5 changed files
with
77 additions
and
16 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
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
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
29 changes: 29 additions & 0 deletions
29
src/main/groovy/com/matthewprenger/cursegradle/Options.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,29 @@ | ||
package com.matthewprenger.cursegradle | ||
|
||
/** | ||
* Various options for CurseGradle. These affect the entire plugin and not just a single curse project. | ||
*/ | ||
class Options { | ||
|
||
/** | ||
* Debug mode will stop just short of actually uploading the file to Curse, and instead spit out the JSON | ||
* to the console. Useful for testing your buildscript. | ||
*/ | ||
boolean debug = false | ||
|
||
/** | ||
* If this is left enabled, CurseGradle will automatically detect the compatible versions of Java for the project | ||
* and add them to the CurseForge metadata. | ||
*/ | ||
boolean javaVersionAutoDetect = true | ||
|
||
/** | ||
* Enable integration with the Gradle Java plugin. This includes setting the default artifact to the jar task. | ||
*/ | ||
boolean javaIntegration = true | ||
|
||
/** | ||
* Enable integration with the ForgeGradle plugin. This includes setting dependencies on the reobfuscation tasks. | ||
*/ | ||
boolean forgeGradleIntegration = true | ||
} |