mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-04-05 14:40:47 +00:00
make introduce libs of redisbungee back
This commit is contained in:
parent
9cb81330e9
commit
81491398e9
6
.github/workflows/gradle.yml
vendored
6
.github/workflows/gradle.yml
vendored
@ -29,14 +29,14 @@ jobs:
|
|||||||
# Artifact name
|
# Artifact name
|
||||||
name: RedisBungee-Bungee
|
name: RedisBungee-Bungee
|
||||||
# Destination path
|
# Destination path
|
||||||
path: proxies/bungeecord/build/libs/*
|
path: redisbungee/proxies/bungeecord/build/libs/*
|
||||||
- name: Upload Velocity
|
- name: Upload Velocity
|
||||||
uses: actions/upload-artifact@v4.4.0
|
uses: actions/upload-artifact@v4.4.0
|
||||||
with:
|
with:
|
||||||
name: RedisBungee-Velocity
|
name: RedisBungee-Velocity
|
||||||
path: proxies/velocity/build/libs/*
|
path: redisbungee/proxies/velocity/build/libs/*
|
||||||
- name: Upload API
|
- name: Upload API
|
||||||
uses: actions/upload-artifact@v4.4.0
|
uses: actions/upload-artifact@v4.4.0
|
||||||
with:
|
with:
|
||||||
name: RedisBungee-API
|
name: RedisBungee-API
|
||||||
path: api/build/libs/*
|
path: redisbungee/api/build/libs/*
|
||||||
|
|||||||
@ -25,11 +25,14 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
extensions.configure<com.diffplug.gradle.spotless.SpotlessExtension> {
|
extensions.configure<com.diffplug.gradle.spotless.SpotlessExtension> {
|
||||||
|
var redisBungeeProjects = sequenceOf("RedisBungee-API", "RedisBungee-Lang", "RedisBungee-Commands", "RedisBungee-Bungee", "RedisBungee-Proxy-Bungee", "RedisBungee-Velocity", "RedisBungee-Proxy-Velocity")
|
||||||
java {
|
java {
|
||||||
removeUnusedImports()
|
removeUnusedImports()
|
||||||
googleJavaFormat()
|
googleJavaFormat()
|
||||||
if (project.name == "valiobungee-api") {
|
if (project.name == "valiobungee-api") {
|
||||||
licenseHeaderFile(file("copyright_header.txt"))
|
licenseHeaderFile(file("copyright_header.txt"))
|
||||||
|
} else if (redisBungeeProjects.contains(project.name)) {
|
||||||
|
licenseHeaderFile(rootProject.file("redisbungee/copyright_header.txt"))
|
||||||
} else {
|
} else {
|
||||||
licenseHeaderFile(rootProject.file("copyright_header.txt"))
|
licenseHeaderFile(rootProject.file("copyright_header.txt"))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
group=net.limework
|
group=net.limework
|
||||||
version=1.0.0-SNAPSHOT
|
version=1.0.0-SNAPSHOT
|
||||||
api-version=v1
|
api-version=v1
|
||||||
|
|
||||||
|
redisbungee-group=com.imaginarycode.minecraft
|
||||||
|
redisbungee-version=0.13.0-SNAPSHOT
|
||||||
@ -3,22 +3,51 @@ protobuf-plugin = "0.9.5"
|
|||||||
protobuf = "3.25.8" # needed for reference to be used for protoc
|
protobuf = "3.25.8" # needed for reference to be used for protoc
|
||||||
slf4j = "2.0.17"
|
slf4j = "2.0.17"
|
||||||
|
|
||||||
|
guava = "33.5.0-jre"
|
||||||
|
jedis = "5.2.0"
|
||||||
|
okhttp = "4.12.0"
|
||||||
|
configurateV3 = "3.7.3"
|
||||||
|
adventure = "4.26.1"
|
||||||
|
adventure-bungeecord-platform = "4.4.1"
|
||||||
|
acf = "e2005dd62d"
|
||||||
|
bungeecordApi = "1.21-R0.5-SNAPSHOT"
|
||||||
|
velocity = "3.5.0-SNAPSHOT"
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
blossom = "net.kyori.blossom:2.2.0"
|
blossom = "net.kyori.blossom:2.2.0"
|
||||||
indragit = "net.kyori.indra.git:4.0.0"
|
indragit = "net.kyori.indra.git:4.0.0"
|
||||||
shadow = "com.gradleup.shadow:9.3.1"
|
shadow = "com.gradleup.shadow:9.3.1"
|
||||||
spotless = "com.diffplug.spotless:8.2.0"
|
spotless = "com.diffplug.spotless:8.2.0"
|
||||||
protobuf = { id = "com.google.protobuf", version.ref = "protobuf-plugin" }
|
protobuf = { id = "com.google.protobuf", version.ref = "protobuf-plugin" }
|
||||||
|
run-velocity = { id = "xyz.jpenilla.run-velocity", version = "2.3.1" }
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
redisson = "org.redisson:redisson:4.3.0"
|
# protobuf
|
||||||
protobuf = { group = "com.google.protobuf", name = "protobuf-java", version.ref = "protobuf" }
|
protobuf = { group = "com.google.protobuf", name = "protobuf-java", version.ref = "protobuf" }
|
||||||
protoc = { group = "com.google.protobuf", name = "protoc", version.ref = "protobuf" }
|
protoc = { group = "com.google.protobuf", name = "protoc", version.ref = "protobuf" }
|
||||||
caffeine = "com.github.ben-manes.caffeine:caffeine:3.2.3"
|
|
||||||
|
|
||||||
|
# valiobungee
|
||||||
|
redisson = "org.redisson:redisson:4.3.0"
|
||||||
|
caffeine = "com.github.ben-manes.caffeine:caffeine:3.2.3"
|
||||||
# logging
|
# logging
|
||||||
slf4j = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j" }
|
slf4j = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j" }
|
||||||
|
|
||||||
# testing
|
# testing
|
||||||
testing-juipter = "org.junit.jupiter:junit-jupiter:6.0.3"
|
testing-juipter = "org.junit.jupiter:junit-jupiter:6.0.3"
|
||||||
testing-slf4j-simple = { group = "org.slf4j", name = "slf4j-simple", version.ref = "slf4j" }
|
testing-slf4j-simple = { group = "org.slf4j", name = "slf4j-simple", version.ref = "slf4j" }
|
||||||
|
|
||||||
|
# redisbungee speific
|
||||||
|
guava = { module = "com.google.guava:guava", version.ref = "guava" }
|
||||||
|
jedis = { module = "redis.clients:jedis", version.ref = "jedis" }
|
||||||
|
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
|
||||||
|
configurateV3 = { module = "org.spongepowered:configurate-yaml", version.ref = "configurateV3" }
|
||||||
|
|
||||||
|
# minecraft speific
|
||||||
|
adventure-api = { module = "net.kyori:adventure-api", version.ref = "adventure" }
|
||||||
|
adventure-miniMessage = { module = "net.kyori:adventure-text-minimessage", version.ref = "adventure" }
|
||||||
|
acf-core = { module = "com.github.ProxioDev.commands:acf-core", version.ref = "acf" }
|
||||||
|
acf-bungeecord = { module = "com.github.ProxioDev.commands:acf-bungee", version.ref = "acf" }
|
||||||
|
acf-velocity = { module = "com.github.ProxioDev.commands:acf-velocity", version.ref = "acf" }
|
||||||
|
platform-bungeecord = { module = "net.md-5:bungeecord-api", version.ref = "bungeecordApi" }
|
||||||
|
adventure-platforms-bungeecord = { module = "net.kyori:adventure-platform-bungeecord", version.ref = "adventure-bungeecord-platform" }
|
||||||
|
platform-velocity = { module = "com.velocitypowered:velocity-api", version.ref = "velocity" }
|
||||||
|
|||||||
@ -9,10 +9,12 @@ rootProject.name = "ValioBungee"
|
|||||||
|
|
||||||
fun configureProject(name: String) {
|
fun configureProject(name: String) {
|
||||||
val projectName = ":valiobungee-$name"
|
val projectName = ":valiobungee-$name"
|
||||||
include(projectName)
|
configureProject(projectName,name)
|
||||||
project(projectName).projectDir = file(name)
|
}
|
||||||
|
fun configureProject(name: String, path: String) {
|
||||||
|
include(name)
|
||||||
|
project(name).projectDir = file(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
@ -24,4 +26,15 @@ dependencyResolutionManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// main project stuff
|
||||||
sequenceOf("core", "api").forEach{configureProject(it)}
|
sequenceOf("core", "api").forEach{configureProject(it)}
|
||||||
|
// RedisBunggee Project
|
||||||
|
// configureProject(":RedisBungee-API", "redisbungee/api")
|
||||||
|
// configureProject(":RedisBungee-Lang", "redisbungee/lang")
|
||||||
|
// configureProject(":RedisBungee-Commands", "redisbungee/commands")
|
||||||
|
|
||||||
|
// configureProject(":RedisBungee-Bungee", "redisbungee/proxies/bungeecord/bungeecord-api")
|
||||||
|
// configureProject(":RedisBungee-Proxy-Bungee", "redisbungee/proxies/bungeecord")
|
||||||
|
|
||||||
|
// configureProject(":RedisBungee-Velocity", "redisbungee/proxies/velocity/velocity-api")
|
||||||
|
// configureProject(":RedisBungee-Proxy-Velocity", "redisbungee/proxies/velocity")
|
||||||
Loading…
Reference in New Issue
Block a user