Skip to content

Commit

Permalink
fix: dependencies of npc module
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickbaier committed Sep 29, 2024
1 parent b6cd5fe commit 50ada35
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
rm temp/modules/SimpleCloud-Chat+Tab.jar
rm temp/modules/SimpleCloud-ServiceSelection.jar
rm temp/modules/SimpleCloud-CloudFlare.jar
# rm temp/modules/SimpleCloud-Placeholders.jar
rm temp/modules/SimpleCloud-Placeholders.jar
- name: Upload zip
uses: actions/upload-artifact@v3
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ allprojects {
name 'spigotmc-repo'
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}

// packetevents
maven {
url "https://repo.codemc.io/repository/maven-releases/"
mavenContent {
includeGroup("com.github.retrooper")
}
}
}

project.ext {
Expand Down
8 changes: 4 additions & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ findProject(':simplecloud-modules:simplecloud-module-chat-tab')?.name = 'simplec
include 'simplecloud-modules:simplecloud-module-statistics'
findProject(':simplecloud-modules:simplecloud-module-statistics')?.name = 'simplecloud-module-statistics'
include 'simplecloud-dependency-loader'
//include 'simplecloud-modules:simplecloud-module-npc'
//findProject(':simplecloud-modules:simplecloud-module-npc')?.name = 'simplecloud-module-npc'
//include 'simplecloud-modules:simplecloud-module-placeholders'
//findProject(':simplecloud-modules:simplecloud-module-placeholders')?.name = 'simplecloud-module-placeholders'
include 'simplecloud-modules:simplecloud-module-npc'
findProject(':simplecloud-modules:simplecloud-module-npc')?.name = 'simplecloud-module-npc'
include 'simplecloud-modules:simplecloud-module-placeholders'
findProject(':simplecloud-modules:simplecloud-module-placeholders')?.name = 'simplecloud-module-placeholders'

2 changes: 1 addition & 1 deletion simplecloud-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

dependencies {
testApi group: 'io.netty', name: 'netty-all', version: dependencyNettyVersion
testApi group: 'org.mockito', name: 'mockito-core', version: '2.1.0'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.14.0'
compileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.6.1'
compileOnly(project(":simplecloud-runner"))

Expand Down
25 changes: 20 additions & 5 deletions simplecloud-modules/simplecloud-module-npc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,35 @@

shadowJar {
archiveFileName.set("SimpleCloud-NPC.jar")

relocate("net.kyori", "eu.thesimplecloud.simplecloud.relocate.net.kyori")
relocate("io.papermc.lib", "eu.thesimplecloud.simplecloud.relocate.paperlib")
relocate("io.leangen.geantyref", "eu.thesimplecloud.simplecloud.relocate.geantyref")
relocate("io.github.retrooper", "eu.thesimplecloud.simplecloud.relocate.io.packetevents")
relocate("com.github.retrooper", "eu.thesimplecloud.simplecloud.relocate.com.packetevents")
relocate("com.github.juliarn.npclib", "eu.thesimplecloud.simplecloud.relocate.com.github.juliarn.npclib")

dependencies {
exclude("plugin.yml")
// excludes the META-INF directory, module infos & html files of all dependencies
// this includes for example maven lib files & multi-release module-json files
exclude("META-INF/**", "**/*.html", "module-info.*")
}
}


dependencies {
compileOnly project(":simplecloud-base")
compileOnly project(":simplecloud-api")
compileOnly project(":simplecloud-plugin")
compileOnly project(":simplecloud-launcher")

compileOnly 'org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT'
compileOnly 'com.github.retrooper.packetevents:spigot:b48a91bcee'
compileOnly 'org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT'

api 'io.github.juliarn:npc-lib-api:3.0.0-beta7'
api 'io.github.juliarn:npc-lib-common:3.0.0-beta7'
api 'io.github.juliarn:npc-lib-bukkit:3.0.0-beta7'
api 'io.github.juliarn:npc-lib-api:3.0.0-beta9'
api 'io.github.juliarn:npc-lib-common:3.0.0-beta9'
api 'io.github.juliarn:npc-lib-bukkit:3.0.0-beta9'

api 'com.github.cryptomorin:XSeries:9.2.0'
}

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ main: eu.thesimplecloud.module.npc.plugin.NPCPlugin

depend: [ SimpleCloud-Plugin ]

api-version: 1.13
api-version: 1.21
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ main: eu.thesimplecloud.module.permission.service.spigot.SpigotPluginMain

depend: [ SimpleCloud-Plugin ]

api-version: 1.13
api-version: 1.21

commands:
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ main: eu.thesimplecloud.module.sign.service.BukkitPluginMain

depend: [ SimpleCloud-Plugin ]

api-version: 1.13
api-version: 1.21

commands:
cloudsigns:
Expand Down
2 changes: 1 addition & 1 deletion simplecloud-plugin/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ author: Wetterbericht

main: eu.thesimplecloud.plugin.server.CloudSpigotPlugin

api-version: 1.13
api-version: 1.21

commands:

0 comments on commit 50ada35

Please sign in to comment.