Initial Velocity support
This commit is contained in:
parent
4ffa7f1b99
commit
4390dc2c56
36 changed files with 1455 additions and 41 deletions
35
Velocity/build.gradle
Normal file
35
Velocity/build.gradle
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
plugins {
|
||||
id 'net.kyori.blossom' version '1.3.0'
|
||||
}
|
||||
|
||||
group = rootProject.group + '.velocity'
|
||||
String dependencyDir = group + '.dependencies'
|
||||
version = rootProject.version
|
||||
archivesBaseName = rootProject.name + '-Velocity'
|
||||
|
||||
repositories {
|
||||
maven { url 'https://nexus.velocitypowered.com/repository/maven-public/' }
|
||||
maven { url 'https://libraries.minecraft.net' }
|
||||
flatDir { dirs '../libs' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation name: 'acf-velocity'
|
||||
implementation 'org.bstats:bstats-velocity:2.2.1'
|
||||
implementation project(":Common")
|
||||
compileOnly 'com.velocitypowered:velocity-api:3.0.0'
|
||||
compileOnly 'com.velocitypowered:velocity-brigadier:1.0.0-SNAPSHOT'
|
||||
compileOnly 'com.electronwill.night-config:toml:3.6.3'
|
||||
annotationProcessor 'com.velocitypowered:velocity-api:3.0.0'
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'org.bstats', dependencyDir + '.bstats'
|
||||
relocate 'co.aikar.commands', dependencyDir + '.acf'
|
||||
relocate 'co.aikar.locales', dependencyDir + '.locales'
|
||||
}
|
||||
|
||||
blossom {
|
||||
replaceTokenIn('src/main/java/net/frankheijden/serverutils/velocity/ServerUtils.java')
|
||||
replaceToken '${version}', version
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue