Ascension/velocity/build.gradle

39 lines
1009 B
Groovy
Raw Normal View History

2021-07-29 03:14:29 +02:00
apply from: rootProject.file('buildscript/standalone.gradle')
apply plugin: 'net.kyori.blossom'
repositories {
maven { url 'https://nexus.velocitypowered.com/repository/maven-public/' }
}
var velocityVersion = '3.0.0'
dependencies {
// API
annotationProcessor project(':api')
implementation project(':api')
// 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
}
shadowJar {
archiveBaseName = 'DiscordSRV-Velocity'
2021-07-29 15:15:21 +02:00
// Relocations in buildscript/relocations.gradle
2021-07-29 03:14:29 +02:00
}
blossom {
var mainClass = 'src/main/java/com/discordsrv/velocity/DiscordSRVVelocityBootstrap.java'
replaceToken('@VERSION@', project.version, mainClass)
}