Skip to content

Commit 51fadac

Browse files
authored
Merge pull request #273 from Multiverse/MV5
MV5
2 parents 1dceed0 + b5b4725 commit 51fadac

30 files changed

+747
-865
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<p align="center">
2-
<img src="https://raw.githubusercontent.com/Multiverse/Multiverse-Core/main/config/multiverse2-long.png" alt="Multiverse Logo">
2+
<img src="config/multiverse-banner.png" alt="Multiverse Logo">
33
</p>
44

5-
# Multiverse Nether portals
6-
75
[![Modrinth](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/plugin/multiverse-NetherPortals)
86
[![Hangar](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/hangar_vector.svg)](https://hangar.papermc.io/Multiverse/Multiverse-NetherPortals)
97
[![Bukkit](https://raw.githubusercontent.com/intergrav/devins-badges/refs/heads/v3/assets/cozy/available/bukkit_vector.svg)](https://dev.bukkit.org/projects/multiverse-NetherPortals)
@@ -17,7 +15,7 @@
1715

1816
[Multiverse Nether Portals](https://dev.bukkit.org/projects/multiverse-NetherPortals) is an add-on Plugin for [Multiverse core](https://dev.bukkit.org/projects/multiverse-core) that makes nether and end portals work **just like vanilla** with minimal setup.
1917

20-
Now it's time to create your very own server with Multiverse Nether Portals, do check out our [Wiki](https://github.com/Multiverse/Multiverse-Core/wiki/Home-(NetherPortals)) and [Usage Guide](https://github.com/Multiverse/Multiverse-Core/wiki/Basics-(NetherPortals)) to get started. Feel free to hop onto our [Discord](https://discord.gg/NZtfKky) if you have any questions or just want to have a chat with us!
18+
Now it's time to create your very own server with Multiverse Nether Portals, do check out our [Wiki](https://mvplugins.org) and [Usage Guide](https://mvplugins.org/netherportals/fundamentals/basic-usage/) to get started. Feel free to hop onto our [Discord](https://discord.gg/NZtfKky) if you have any questions or just want to have a chat with us!
2119

2220
## Our other amazing sub-modules:
2321

@@ -38,7 +36,7 @@ Simply build the source with Gradle:
3836
**Want to help improve Multiverse Nether Portals?** There are several ways you can support and contribute to the project.
3937
* Take a look at our "Bug: Unconfirmed" issues, where you can find issues that need extra testing and investigation.
4038
* Want others to love Multiverse too? You can join the [Multiverse Discord community](https://discord.gg/NZtfKky) and help others with issues and setup!
41-
* A Multiverse guru? You can update our [Wiki](https://github.com/Multiverse/Multiverse-Core/wiki) with your latest tips, tricks and guides! The wiki open for all to edit and improve.
39+
* A Multiverse guru? You can update our [Wiki](https://github.com/Multiverse/multiverse-web) with your latest tips, tricks and guides! The wiki open for all to edit and improve.
4240
* Love coding? You could look at ["State: Open to PR"](https://github.com/Multiverse/Multiverse-NetherPortals/labels/State%3A%20Open%20to%20PR) and ["Resolution: Accepted"](https://github.com/Multiverse/Multiverse-NetherPortals/labels/Resolution%3A%20Accepted) issues. We're always happy to receive bug fixes and feature additions as [pull requests](https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github-3/).
4341
* If you'd like to make a financial contribution to the project, do consider joining our [Patreon](https://www.patreon.com/dumptruckman) or make a one-time donation [here](https://paypal.me/dumptruckman)!
4442

build.gradle

Lines changed: 35 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,63 @@
11
plugins {
2-
id 'java-library'
3-
id 'maven-publish'
42
id 'checkstyle'
5-
id 'com.github.johnrengelman.shadow' version '7.1.2'
3+
id 'org.mvplugins.multiverse-plugin' version '1.2.0'
64
}
75

8-
version = System.getenv('GITHUB_VERSION') ?: 'local'
9-
group = 'com.onarandombox.multiversenetherportals'
6+
group = 'org.mvplugins.multiverse.netherportals'
107
description = 'Multiverse-NetherPortals'
118

12-
java.sourceCompatibility = JavaVersion.VERSION_11
13-
149
repositories {
15-
mavenLocal()
16-
mavenCentral()
17-
1810
maven {
19-
name = 'spigotmc'
20-
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
11+
name = 'enginehub'
12+
url = uri('https://maven.enginehub.org/repo/')
2113
}
14+
}
2215

23-
maven {
24-
name = 'onarandombox'
25-
url = uri('https://repo.onarandombox.com/content/groups/public')
26-
}
16+
configure(apiDependencies) {
17+
serverApiVersion = '1.18.2-R0.1-SNAPSHOT'
18+
mockBukkitServerApiVersion = '1.21'
19+
mockBukkitVersion = '4.31.1'
2720
}
2821

2922
dependencies {
30-
// Spigot
31-
implementation 'org.bukkit:bukkit:1.13.2-R0.1-SNAPSHOT'
32-
33-
// Multiverse-Core
34-
implementation 'com.onarandombox.multiversecore:multiverse-core:4.3.11'
35-
36-
// Multiverse-Portals
37-
implementation 'com.onarandombox.multiverseportals:multiverse-portals:4.2.2'
23+
// Multiverse
24+
externalPlugin 'org.mvplugins.multiverse.core:multiverse-core:5.0.0-SNAPSHOT'
25+
externalPlugin 'org.mvplugins.multiverse.portals:multiverse-portals:5.0.0-SNAPSHOT'
3826

3927
// Utils
40-
api('com.dumptruckman.minecraft:Logging:1.1.1') {
41-
exclude group: 'org.bukkit', module: 'bukkit'
28+
shadowed('com.dumptruckman.minecraft:Logging:1.1.1') {
29+
exclude group: 'junit', module: 'junit'
4230
}
43-
}
44-
4531

46-
java {
47-
withSourcesJar()
48-
withJavadocJar()
49-
}
50-
51-
tasks.withType(JavaCompile).configureEach {
52-
options.encoding = 'UTF-8'
32+
// hk2 for annotation processing only
33+
compileOnly('org.glassfish.hk2:hk2-api:3.0.3') {
34+
exclude group: '*', module: '*'
35+
}
36+
annotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
37+
testAnnotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
5338
}
5439

55-
tasks.withType(Javadoc).configureEach {
56-
options.encoding = 'UTF-8'
40+
checkstyle {
41+
toolVersion = '6.1.1'
42+
configFile file('config/mv_checks.xml')
43+
ignoreFailures = true
5744
}
5845

59-
60-
configurations {
61-
[apiElements, runtimeElements].each {
62-
it.outgoing.artifacts.removeIf { it.buildDependencies.getDependencies(null).contains(jar) }
63-
it.outgoing.artifact(shadowJar)
46+
shadowJar {
47+
relocate 'com.dumptruckman.minecraft.util.Logging', 'org.mvplugins.multiverse.netherportals.util.MVPLogging'
48+
relocate 'com.dumptruckman.minecraft.util.DebugLog', 'org.mvplugins.multiverse.netherportals.util.DebugFileLogger'
49+
50+
dependencies {
51+
exclude(dependency {
52+
it.moduleGroup == 'org.ow2.asm'
53+
})
54+
exclude(dependency {
55+
it.moduleGroup == 'org.jetbrains'
56+
})
6457
}
6558
}
6659

6760
publishing {
68-
publications {
69-
maven(MavenPublication) {
70-
from components.java
71-
}
72-
}
7361
repositories {
7462
maven {
7563
name = "GitHubPackages"
@@ -79,54 +67,5 @@ publishing {
7967
password = System.getenv("GITHUB_TOKEN")
8068
}
8169
}
82-
maven {
83-
name = "multiverse"
84-
def releasesRepoUrl = "https://repo.onarandombox.com/multiverse-releases"
85-
def snapshotsRepoUrl = "https://repo.onarandombox.com/multiverse-snapshots"
86-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
87-
credentials(PasswordCredentials)
88-
}
8970
}
9071
}
91-
92-
93-
processResources {
94-
def props = [version: "${project.version}"]
95-
inputs.properties props
96-
filteringCharset 'UTF-8'
97-
filesMatching('plugin.yml') {
98-
expand props
99-
}
100-
101-
// This task should never be skipped. The tests depend on this having been run but we want the new version number
102-
// that is created after tests are run and before we run again to publish.
103-
outputs.upToDateWhen { false }
104-
}
105-
106-
107-
checkstyle {
108-
toolVersion = '6.1.1'
109-
configFile file('config/mv_checks.xml')
110-
ignoreFailures = true
111-
}
112-
113-
114-
javadoc {
115-
source = sourceSets.main.allJava
116-
classpath = configurations.compileClasspath
117-
}
118-
119-
120-
project.configurations.api.canBeResolved = true
121-
122-
shadowJar {
123-
relocate 'com.dumptruckman.minecraft.util.Logging', 'com.onarandombox.multiverseportals.util.MVPLogging'
124-
relocate 'com.dumptruckman.minecraft.util.DebugLog', 'com.onarandombox.multiverseportals.util.DebugFileLogger'
125-
126-
configurations = [project.configurations.api]
127-
128-
archiveFileName = "$baseName-$version.$extension"
129-
}
130-
131-
build.dependsOn shadowJar
132-
jar.enabled = false

config/multiverse-banner.png

172 KB
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

settings.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22
* This file was generated by the Gradle 'init' task.
33
*/
44

5+
pluginManagement {
6+
repositories {
7+
gradlePluginPortal()
8+
maven {
9+
url = uri('https://repo.onarandombox.com/multiverse-releases')
10+
}
11+
}
12+
}
13+
514
rootProject.name = 'multiverse-netherportals'

src/main/java/com/onarandombox/MultiverseNetherPortals/commands/LinkCommand.java

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

src/main/java/com/onarandombox/MultiverseNetherPortals/commands/NetherPortalCommand.java

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

0 commit comments

Comments
 (0)