mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
It compiles! :D
This commit is contained in:
parent
7a91e0a80d
commit
b293c3478a
2 changed files with 9 additions and 18 deletions
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue