Skip to content

Commit b51bd18

Browse files
committed
support Minecraft 1.20.2+
1 parent 5104d09 commit b51bd18

File tree

19 files changed

+260
-218
lines changed

19 files changed

+260
-218
lines changed

.github/workflows/pullrequest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v2
11+
- name: Checkout repository and submodules
12+
uses: actions/checkout@v4
13+
with:
14+
submodules: recursive
1215

1316
- name: Set up JDK 1.8
1417
uses: actions/setup-java@v2

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v3
2020

21-
- name: Set up JDK 1.8
21+
- name: Set up JDK 17
2222
uses: actions/setup-java@v3
2323
with:
2424
distribution: 'temurin'
25-
java-version: '8'
25+
java-version: '17'
2626

2727
- name: Setup Gradle
2828
uses: gradle/gradle-build-action@v2

.gitignore

Lines changed: 55 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Created by https://www.gitignore.io/api/git,java,maven,eclipse,netbeans,jetbrains+all
2-
# Edit at https://www.gitignore.io/?templates=git,java,maven,eclipse,netbeans,jetbrains+all
1+
# Created by https://www.gitignore.io/api/git,java,gradle,eclipse,netbeans,jetbrains+all
2+
# Edit at https://www.gitignore.io/?templates=git,gradle,maven,eclipse,netbeans,jetbrains+all
33

44
### Eclipse ###
55
.metadata
@@ -52,22 +52,19 @@ local.properties
5252

5353
# Annotation Processing
5454
.apt_generated/
55+
.apt_generated_test/
5556

5657
# Scala IDE specific (Scala & Java development for Eclipse)
5758
.cache-main
5859
.scala_dependencies
5960
.worksheet
6061

61-
### Eclipse Patch ###
62-
# Eclipse Core
63-
.project
64-
65-
# JDT-specific (Eclipse Java Development Tools)
66-
.classpath
67-
68-
# Annotation Processing
69-
.apt_generated
62+
# Uncomment this line if you wish to ignore the project description file.
63+
# Typically, this file would be tracked if it contains build/dependency configurations:
64+
#.project
7065

66+
### Eclipse Patch ###
67+
# Spring Boot Tooling
7168
.sts4-cache/
7269

7370
### Git ###
@@ -109,9 +106,10 @@ local.properties
109106

110107
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
111108
hs_err_pid*
109+
replay_pid*
112110

113111
### JetBrains+all ###
114-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
112+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
115113
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
116114

117115
# User-specific stuff
@@ -121,6 +119,9 @@ hs_err_pid*
121119
.idea/**/dictionaries
122120
.idea/**/shelf
123121

122+
# AWS User-specific
123+
.idea/**/aws.xml
124+
124125
# Generated files
125126
.idea/**/contentModel.xml
126127

@@ -141,11 +142,14 @@ hs_err_pid*
141142
# When using Gradle or Maven with auto-import, you should exclude module files,
142143
# since they will be recreated, and may cause churn. Uncomment if using
143144
# auto-import.
144-
# .idea/modules.xml
145-
# .idea/*.iml
146-
# .idea/modules
147-
# *.iml
148-
# *.ipr
145+
.idea/artifacts
146+
.idea/compiler.xml
147+
.idea/jarRepositories.xml
148+
.idea/modules.xml
149+
.idea/*.iml
150+
.idea/modules
151+
*.iml
152+
*.ipr
149153

150154
# CMake
151155
cmake-build-*/
@@ -168,6 +172,9 @@ atlassian-ide-plugin.xml
168172
# Cursive Clojure plugin
169173
.idea/replstate.xml
170174

175+
# SonarLint plugin
176+
.idea/sonarlint/
177+
171178
# Crashlytics plugin (for Android Studio and IntelliJ)
172179
com_crashlytics_export_strings.xml
173180
crashlytics.properties
@@ -181,32 +188,13 @@ fabric.properties
181188
.idea/caches/build_file_checksums.ser
182189

183190
### JetBrains+all Patch ###
184-
# Ignores the whole .idea folder and all .iml files
185-
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
186-
187-
.idea/
191+
# Ignore everything but code style settings and run configurations
192+
# that are supposed to be shared within teams.
188193

189-
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
194+
.idea/*
190195

191-
*.iml
192-
modules.xml
193-
.idea/misc.xml
194-
*.ipr
195-
196-
# Sonarlint plugin
197-
.idea/sonarlint
198-
199-
### Maven ###
200-
target/
201-
pom.xml.tag
202-
pom.xml.releaseBackup
203-
pom.xml.versionsBackup
204-
pom.xml.next
205-
release.properties
206-
dependency-reduced-pom.xml
207-
buildNumber.properties
208-
.mvn/timing.properties
209-
.mvn/wrapper/maven-wrapper.jar
196+
!.idea/codeStyles
197+
!.idea/runConfigurations
210198

211199
### NetBeans ###
212200
**/nbproject/private/
@@ -218,6 +206,29 @@ dist/
218206
nbdist/
219207
.nb-gradle/
220208

221-
# End of https://www.gitignore.io/api/git,java,maven,eclipse,netbeans,jetbrains+all
222-
gradle/
223-
**/.gradle/
209+
### Gradle ###
210+
.gradle
211+
**/build/
212+
!src/**/build/
213+
214+
# Ignore Gradle GUI config
215+
gradle-app.setting
216+
217+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
218+
!gradle-wrapper.jar
219+
220+
# Avoid ignore Gradle wrappper properties
221+
!gradle-wrapper.properties
222+
223+
# Cache of project
224+
.gradletasknamecache
225+
226+
# Eclipse Gradle plugin generated files
227+
# Eclipse Core
228+
.project
229+
# JDT-specific (Eclipse Java Development Tools)
230+
.classpath
231+
232+
# End of https://www.gitignore.io/api/git,java,gradle,eclipse,netbeans,jetbrains+all
233+
234+
/core/src/main/resources/languages/

Jenkinsfile

Lines changed: 0 additions & 112 deletions
This file was deleted.

api/src/main/java/com/minekube/connect/api/InstanceHolder.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,4 @@ public static boolean set(
5757
return true;
5858
}
5959

60-
@SuppressWarnings("unchecked")
61-
public static <T extends ConnectApi> T castApi(Class<T> cast) {
62-
return (T) api;
63-
}
6460
}

api/src/main/java/com/minekube/connect/api/inject/PlatformInjector.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,13 @@
3636
public interface PlatformInjector {
3737

3838
/**
39-
* @return
39+
* @return the server socket address
4040
*/
4141
SocketAddress getServerSocketAddress();
4242

4343
/**
4444
* Injects the server connection.
4545
*
46-
* @return true if the connection has successfully been injected
4746
* @throws Exception if something went wrong while injecting the server connection
4847
*/
4948
boolean inject() throws Exception;

build-logic/src/main/kotlin/Versions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525

2626
object Versions {
27-
const val spigotVersion = "1.13-R0.1-SNAPSHOT"
27+
const val spigotVersion = "1.19.4-R0.1-SNAPSHOT"
2828
const val configUtilsVersion = "1.0-SNAPSHOT"
2929
const val guiceVersion = "5.0.1"
3030
const val nettyVersion = "4.1.49.Final"

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66

77
allprojects {
88
group = "com.minekube.connect"
9-
version = "0.4.0"
9+
version = "0.5.0"
1010
description =
1111
"Connects the server/proxy to the global Connect network to reach more players while also supporting online mode server, bungee or velocity mode. Visit https://minekube.com/connect"
1212
}

bungee/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var bungeeCommit = "ff5727c"
1+
var bungeeCommit = "master-SNAPSHOT"
22
var gsonVersion = "2.8.0"
33
var guavaVersion = "21.0"
44

@@ -13,9 +13,10 @@ relocate("net.kyori")
1313
relocate("cloud.commandframework")
1414
// used in cloud
1515
relocate("io.leangen.geantyref")
16+
// since 1.20
17+
relocate("org.yaml")
1618

1719
// these dependencies are already present on the platform
1820
provided("com.github.SpigotMC.BungeeCord", "bungeecord-proxy", bungeeCommit)
1921
provided("com.google.code.gson", "gson", gsonVersion)
2022
provided("com.google.guava", "guava", guavaVersion)
21-
provided("org.yaml", "snakeyaml", Versions.snakeyamlVersion)

core/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dependencies {
1313

1414
api("com.google.inject", "guice", Versions.guiceVersion)
1515
api("cloud.commandframework", "cloud-core", Versions.cloudVersion)
16-
api("org.yaml", "snakeyaml", Versions.snakeyamlVersion)
1716
api("org.bstats", "bstats-base", Versions.bstatsVersion)
1817

1918
implementation("com.squareup.okhttp3:okhttp:4.9.3")

settings.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@file:Suppress("UnstableApiUsage")
12
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
23

34
dependencyResolutionManagement {
@@ -12,7 +13,8 @@ dependencyResolutionManagement {
1213
}
1314

1415
// Paper, Velocity
15-
maven("https://papermc.io/repo/repository/maven-public")
16+
// maven("https://papermc.io/repo/repository/maven-public")
17+
maven("https://repo.papermc.io/repository/maven-public")
1618
// Spigot
1719
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots") {
1820
mavenContent { snapshotsOnly() }

0 commit comments

Comments
 (0)