mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-29 15:49:09 +01:00
Start on compiling
This commit is contained in:
parent
64d5cf51d1
commit
7a91e0a80d
2 changed files with 31 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'fabric-loom' version '0.5-SNAPSHOT'
|
id 'fabric-loom' version '0.5-SNAPSHOT'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
|
id 'com.github.johnrengelman.shadow' version '6.0.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
@ -23,6 +24,11 @@ dependencies {
|
||||||
// You may need to force-disable transitiveness on them.
|
// You may need to force-disable transitiveness on them.
|
||||||
|
|
||||||
implementation 'org.geysermc:connector:1.1.0'
|
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'
|
compileOnly 'org.projectlombok:lombok:1.18.4'
|
||||||
annotationProcessor '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
|
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 {
|
jar {
|
||||||
from "LICENSE"
|
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
|
// configure the maven publication
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
|
|
|
@ -8,7 +8,7 @@ loader_version=0.10.1+build.209
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0-SNAPSHOT
|
mod_version=1.0-SNAPSHOT
|
||||||
maven_group=org.geysermc.platform
|
maven_group=org.geysermc.platform
|
||||||
archives_base_name=fabric
|
archives_base_name=Geyser-Fabric
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# check this on https://modmuss50.me/fabric.html
|
# check this on https://modmuss50.me/fabric.html
|
||||||
fabric_version=0.23.0+build.410-1.16
|
fabric_version=0.23.0+build.410-1.16
|
||||||
|
|
Loading…
Reference in a new issue