mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-26 12:35:20 +01:00
45 lines
1020 B
Groovy
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)
|
|
}
|