mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-22 11:55:54 +01:00
59 lines
1.2 KiB
Groovy
59 lines
1.2 KiB
Groovy
apply from: rootProject.file('buildscript/standalone.gradle')
|
|
apply plugin: 'net.kyori.blossom'
|
|
apply plugin: 'org.jetbrains.gradle.plugin.idea-ext'
|
|
apply plugin: 'xyz.jpenilla.run-velocity'
|
|
|
|
java {
|
|
disableAutoTargetJvm() // Requires Java 17, we target 8
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
blossom {
|
|
javaSources {
|
|
property('version', project.version.toString())
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
archiveBaseName = 'DiscordSRV-Velocity'
|
|
|
|
// Relocations in buildscript/relocations.gradle
|
|
}
|
|
|
|
repositories {
|
|
exclusiveContent {
|
|
forRepository {
|
|
maven { url 'https://repo.papermc.io/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) {
|
|
exclude module: 'caffeine'
|
|
}
|
|
|
|
// DependencyDownload
|
|
implementation(libs.mcdependencydownload.velocity)
|
|
}
|
|
|
|
tasks {
|
|
runVelocity {
|
|
velocityVersion("3.1.2-SNAPSHOT")
|
|
}
|
|
} |