Include gui and api inside jar
This commit is contained in:
+8
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user