From 8199e49a2f19139166ee7c9b783da7153c2be9df Mon Sep 17 00:00:00 2001 From: doctor4t <25477005+doctor4t@users.noreply.github.com> Date: Mon, 26 Jun 2023 17:42:53 +0200 Subject: [PATCH] chenilling --- build.gradle | 45 ++++++++++++--------------------------------- gradle.properties | 8 ++++++++ 2 files changed, 20 insertions(+), 33 deletions(-) diff --git a/build.gradle b/build.gradle index ebe61072..8e205532 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'maven-publish' alias libs.plugins.quilt.loom + id 'io.github.ladysnake.chenille' version '0.11.3' } archivesBaseName = project.archives_base_name @@ -90,6 +91,17 @@ dependencies { include( implementation( annotationProcessor("com.github.llamalad7.mixinextras:mixinextras-fabric:${project.mixin_extras_version}"))) } +chenille { + javaVersion = 17 + configurePublishing { + mainArtifact = remapJar.archiveFile + withLadysnakeMaven() + withCurseforgeRelease() + withGithubRelease() + withModrinthRelease() + } +} + processResources { inputs.property 'version', version @@ -98,24 +110,8 @@ processResources { } } -tasks.withType(JavaCompile).configureEach { - it.options.encoding = 'UTF-8' - // Minecraft 1.18 (1.18-pre2) upwards uses Java 17. - it.options.release = 17 -} - java { - // Still required by IDEs such as Eclipse and Visual Studio Code - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 - - // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task if it is present. - // If you remove this line, sources will not be generated. withSourcesJar() - - // If this mod is going to be a library, then it should also generate Javadocs in order to aid with development. - // Uncomment this line to generate them. - // withJavadocJar() } // If you plan to use a different file for the license, don't forget to change the file name here! @@ -124,20 +120,3 @@ jar { rename { "${it}_${archivesBaseName}" } } } - -// Configure the maven publication -publishing { - publications { - mavenJava(MavenPublication) { - from components.java - } - } - - // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. - repositories { - // Add repositories to publish to here. - // Notice: This block does NOT have the same function as the block in the top level. - // The repositories here will be used for publishing your artifact, not for - // retrieving dependencies. - } -} diff --git a/gradle.properties b/gradle.properties index e984d4a2..e6fd7378 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,3 +15,11 @@ satin_version = 1.9.0 midnightlib_version= 1.0.0 lodestone_version = 9fe9aea mixin_extras_version=0.2.0-beta.8 + +# Release metadata +modrinth_id = pcPXJeZi +curseforge_id = 556381 +curseforge_versions = 1.19.2 +cf_requirements = qsl +cf_embeddeds = satin-api +release_type = release