explicitly include mixin "properly", mavenpublish should work now

This commit is contained in:
Wagyourtail
2022-04-04 20:10:25 -07:00
parent 3cee66229a
commit 16f93ce769
6 changed files with 60 additions and 34 deletions

View File

@@ -47,8 +47,8 @@ dependencies {
forge "net.minecraftforge:forge:${rootProject.forge_version}"
// this makes it compile with the forge tweak stuff
implementation 'com.github.ImpactDevelopment:SimpleTweaker:1.2'
implementation('net.minecraft:launchwrapper:1.12') {
compileOnly 'com.github.ImpactDevelopment:SimpleTweaker:1.2'
compileOnly('net.minecraft:launchwrapper:1.12') {
exclude module: 'lwjgl'
exclude module: 'asm-debug-all'
}
@@ -100,7 +100,6 @@ components.java {
task proguard(type: ProguardTask) {
url 'https://github.com/Guardsquare/proguard/releases/download/v7.2.1/proguard-7.2.1.zip'
mixinUrl 'https://maven.fabricmc.net/net/fabricmc/sponge-mixin/0.11.3%2Bmixin.0.8.5/sponge-mixin-0.11.3%2Bmixin.0.8.5.jar'
extract 'proguard-7.2.1/lib/proguard.jar'
compType "FORGE"
}
@@ -108,4 +107,18 @@ task proguard(type: ProguardTask) {
task createDist(type: CreateDistTask, dependsOn: proguard)
build.finalizedBy(createDist)
build.finalizedBy(createDist)
publishing {
publications {
mavenFabric(MavenPublication) {
artifactId = rootProject.archives_base_name + "-" + project.name
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.
}
}