3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-25 15:50:14 +01:00

It compiles! :D

Dieser Commit ist enthalten in:
DoctorMacc 2020-10-07 18:35:35 -04:00
Ursprung 7a91e0a80d
Commit b293c3478a
2 geänderte Dateien mit 9 neuen und 18 gelöschten Zeilen

Datei anzeigen

@ -1,9 +1,13 @@
plugins {
id 'fabric-loom' version '0.5-SNAPSHOT'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '6.0.0'
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'java'
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
@ -24,17 +28,15 @@ 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'
}
shadow 'org.geysermc:connector:1.1.0'
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.nukkitx.com/maven-releases/')
}
@ -82,12 +84,10 @@ task sourcesJar(type: Jar, dependsOn: classes) {
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 {
@ -98,15 +98,6 @@ 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 {

Datei anzeigen

@ -109,7 +109,7 @@ public class GeyserFabricMod implements DedicatedServerModInitializer, GeyserBoo
geyserConfig.getBedrock().setPort(geyserConfig.getRemote().getPort());
}
this.connector = GeyserConnector.start(PlatformType.ANDROID, this);
this.connector = GeyserConnector.start(PlatformType.FABRIC, this);
this.geyserPingPassthrough = GeyserLegacyPingPassthrough.init(connector);