2021-07-29 03:14:29 +02:00
|
|
|
apply from: rootProject.file('buildscript/relocations.gradle')
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Annotations
|
2021-10-19 22:17:30 +02:00
|
|
|
compileOnlyApi 'org.jetbrains:annotations:22.0.0'
|
|
|
|
api 'com.google.code.findbugs:jsr305:3.0.2'
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// JDA
|
|
|
|
api('net.dv8tion:JDA:' + rootProject.jdaVersion) {
|
|
|
|
// Annotations are suppose to be compile time only
|
|
|
|
exclude group: 'org.jetbrains', module: 'annotations'
|
|
|
|
|
|
|
|
// We don't use audio
|
|
|
|
exclude module: 'opus-java'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Relocations are in buildscript/api.gradle
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
ap {
|
|
|
|
java {
|
|
|
|
compileClasspath += sourceSets.main.compileClasspath + sourceSets.main.output
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
from sourceSets.ap.output
|
|
|
|
}
|
|
|
|
|
|
|
|
license {
|
|
|
|
// Overwrite the default
|
|
|
|
header = rootProject.file('buildscript/license/API_LICENSE_HEADER')
|
|
|
|
}
|