Start on compiling

This commit is contained in:
DoctorMacc 2020-10-06 22:45:15 -04:00
parent 64d5cf51d1
commit 7a91e0a80d
2 changed files with 31 additions and 1 deletions

View file

@ -1,6 +1,7 @@
plugins {
id 'fabric-loom' version '0.5-SNAPSHOT'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '6.0.0'
}
sourceCompatibility = JavaVersion.VERSION_1_8
@ -23,6 +24,11 @@ dependencies {
// You may need to force-disable transitiveness on them.
implementation 'org.geysermc:connector:1.1.0'
shadow('org.geysermc:connector:1.1.0') {
// exclude group: 'org.w3c'
// exclude group: 'org.xml'
// exclude group: 'javax.xml'
}
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
@ -74,10 +80,34 @@ task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
}
shadowJar {
configurations = [project.configurations.shadow]
//relocate 'org.apache', 'geyser.org.apache'
relocate 'org.reflections', 'geyser.org.reflections'
relocate 'org.dom4j', 'geyser.org.dom4j'
relocate 'javax.xml', 'geyser.javaxxml'
relocate 'org.xml', 'geyser.xml'
//relocate 'org.w3c', 'geyser.w3c'
}
jar {
from "LICENSE"
}
remapJar {
dependsOn(shadowJar)
input.set shadowJar.archiveFile.get()
}
//
//import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
//
//task relocateShadowJar(type: ConfigureShadowRelocation) {
// target = tasks.shadowJar
// prefix = "org.geyser.platform.fabric.relocate"
//}
//
//tasks.shadowJar.dependsOn tasks.relocateShadowJar
// configure the maven publication
publishing {
publications {

View file

@ -8,7 +8,7 @@ loader_version=0.10.1+build.209
# Mod Properties
mod_version=1.0-SNAPSHOT
maven_group=org.geysermc.platform
archives_base_name=fabric
archives_base_name=Geyser-Fabric
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.23.0+build.410-1.16