mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-27 17:28:23 +01:00
45 lines
1007 B
Groovy
45 lines
1007 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')
|
|
|
|
// 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)
|
|
}
|