make ReobfArtifactConfiguration fields @JvmStatic

fixes #243
This commit is contained in:
Jason Penilla 2024-04-28 19:47:54 -07:00
parent e54e9fce13
commit 3711175570
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -46,6 +46,7 @@ fun interface ReobfArtifactConfiguration {
* The `reobfJar` will have no classifier. [BasePluginExtension.getArchivesName] is used to name
* the `reobfJar`, falling back to the project name if it is not configured.
*/
@JvmStatic
val REOBF_PRODUCTION: ReobfArtifactConfiguration = ReobfArtifactConfiguration { project, reobfJar ->
val jar = project.tasks.named<AbstractArchiveTask>(JavaPlugin.JAR_TASK_NAME) {
archiveClassifier.set("dev")
@ -71,6 +72,7 @@ fun interface ReobfArtifactConfiguration {
* Does not modify `jar` or `shadowJar` classifier, [BasePluginExtension.getArchivesName] is used to name
* the `reobfJar`, falling back to the project name if it is not configured.
*/
@JvmStatic
val MOJANG_PRODUCTION: ReobfArtifactConfiguration = ReobfArtifactConfiguration { project, reobfJar ->
val devJarTask = try {
project.tasks.named<AbstractArchiveTask>("shadowJar")