Ascension/velocity/build.gradle
2022-04-22 20:56:11 +03:00

45 lines
1020 B
Groovy

apply from: rootProject.file('buildscript/standalone.gradle')
apply plugin: 'net.kyori.blossom'
shadowJar {
archiveBaseName = 'DiscordSRV-Velocity'
// Relocations in buildscript/relocations.gradle
}
repositories {
exclusiveContent {
forRepository {
maven { url 'https://nexus.velocitypowered.com/repository/maven-public/' }
}
filter {
includeGroup 'com.velocitypowered'
}
}
}
dependencies {
// API
annotationProcessor project(':api')
implementation project(':common:common-api')
// Common
implementation project(':common:common-proxy')
// Platform
annotationProcessor(libs.velocity)
compileOnly(libs.velocity)
// DependencyDownload
implementation(libs.mcdependencydownload.velocity)
}
jar {
dependsOn blossomSourceReplacementJava
}
blossom {
var mainClass = 'src/main/java/com/discordsrv/velocity/DiscordSRVVelocityBootstrap.java'
replaceToken('@VERSION@', project.version, mainClass)
}