Include gui and api inside jar

This commit is contained in:
Neil
2020-02-18 12:18:19 +01:00
parent da35bda7b9
commit 211ecfe682
3 changed files with 20 additions and 8 deletions
+8 -5
View File
@@ -18,19 +18,21 @@ repositories {
url = "http://server.bbkr.space:8081/artifactory/libs-release"
}
}
dependencies {
modImplementation "io.github.cottonmc:LibGui:1.6.0"
}
dependencies {
//to change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
modCompile "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
// modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
//modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
// You may need to force-disable transitiveness on them.
modImplementation "io.github.cottonmc:LibGui:1.6.0"
include "io.github.cottonmc:LibGui:1.6.0"
modImplementation("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}")
include("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}")
}
processResources {
@@ -63,14 +65,15 @@ task sourcesJar(type: Jar, dependsOn: classes) {
jar {
from "LICENSE"
}
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {