Skip to content

Commit

Permalink
chenilling
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor4t committed Jun 26, 2023
1 parent 730f4ea commit 8199e49
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 33 deletions.
45 changes: 12 additions & 33 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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!
Expand All @@ -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.
}
}
8 changes: 8 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8199e49

Please sign in to comment.