Skip to content

Commit

Permalink
Add modrinth publishing; switch maven to our own
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Aug 18, 2023
1 parent 159a9eb commit b76cb3e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
21 changes: 11 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import net.fabricmc.loom.task.RemapJarTask

import java.time.Year

plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'io.github.ladysnake.chenille' version '0.9.0'
id 'fabric-loom' version '1.3-SNAPSHOT'
id 'io.github.ladysnake.chenille' version '0.11.3'
id 'io.github.juuxel.loom-quiltflower' version "1.6.0"
}

Expand All @@ -15,9 +13,10 @@ group = project.maven_group
chenille {
configurePublishing {
mainArtifact = remapJar.archiveFile
withArtifactory()
withLadysnakeMaven()
withCurseforgeRelease()
withGithubRelease()
withModrinthRelease()
}

configureTestmod {
Expand Down Expand Up @@ -54,22 +53,24 @@ processResources {
}
}

task testmodJar(type: Jar, dependsOn: testmodClasses) {
archiveBaseName = 'PalTest'
archiveClassifier = 'dev'
tasks.register("testmodJar", Jar) {
archiveBaseName.set('PalTest')
archiveClassifier.set('dev')
from(sourceSets.testmod.output) {
include 'fabric.mod.json'
expand 'version': project.version
}
from(sourceSets.testmod.output) {
exclude 'fabric.mod.json'
}
dependsOn testmodClasses
}

task remapTestmodJar(type: RemapJarTask, dependsOn: project.testmodJar) {
archiveBaseName = 'PalTest'
tasks.register("remapTestmodJar", RemapJarTask) {
archiveBaseName.set('PalTest')
input = testmodJar.archiveFile
addNestedDependencies = false
dependsOn project.testmodJar
}

build.dependsOn(remapTestmodJar)
9 changes: 5 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx4G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.20-rc1
yarn_mappings=1.20-rc1+build.2
loader_version=0.14.21
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.22
#Fabric api
fabric_version=0.83.0+1.20

Expand All @@ -22,6 +22,7 @@ display_name = PlayerAbilityLib
license_header = LGPL
gpl_version = 3
curseforge_id = 359522
curseforge_versions = 1.20-Snapshot
curseforge_versions = 1.20; 1.20.1
cf_requirements = fabric-api
modrinth_id = DHQA06r4
release_type = release

0 comments on commit b76cb3e

Please sign in to comment.