2021-07-29 03:14:29 +02:00
|
|
|
apply from: rootProject.file('buildscript/standalone.gradle')
|
|
|
|
apply plugin: 'net.kyori.blossom'
|
|
|
|
|
2022-03-20 12:46:06 +01:00
|
|
|
shadowJar {
|
|
|
|
archiveBaseName = 'DiscordSRV-Velocity'
|
|
|
|
|
|
|
|
// Relocations in buildscript/relocations.gradle
|
|
|
|
}
|
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
repositories {
|
2022-02-03 20:43:03 +01:00
|
|
|
exclusiveContent {
|
|
|
|
forRepository {
|
|
|
|
maven { url 'https://nexus.velocitypowered.com/repository/maven-public/' }
|
|
|
|
}
|
|
|
|
filter {
|
|
|
|
includeGroup 'com.velocitypowered'
|
|
|
|
}
|
|
|
|
}
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var velocityVersion = '3.0.0'
|
|
|
|
dependencies {
|
|
|
|
// API
|
|
|
|
annotationProcessor project(':api')
|
2021-10-25 01:04:46 +02:00
|
|
|
implementation project(':common:common-api')
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// Common
|
|
|
|
implementation project(':common:common-proxy')
|
|
|
|
|
|
|
|
// Platform
|
|
|
|
annotationProcessor 'com.velocitypowered:velocity-api:' + velocityVersion
|
|
|
|
compileOnly 'com.velocitypowered:velocity-api:' + velocityVersion
|
|
|
|
|
|
|
|
// DependencyDownload
|
|
|
|
implementation 'dev.vankka.minecraftdependencydownload:velocity:' + rootProject.mddVersion
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
dependsOn blossomSourceReplacementJava
|
|
|
|
}
|
|
|
|
|
|
|
|
blossom {
|
|
|
|
var mainClass = 'src/main/java/com/discordsrv/velocity/DiscordSRVVelocityBootstrap.java'
|
|
|
|
replaceToken('@VERSION@', project.version, mainClass)
|
|
|
|
}
|