forked from lavalink-devs/lavalink-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
59 lines (52 loc) · 1.38 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
plugins {
id "java"
id "application"
id "maven-publish"
id "com.github.johnrengelman.shadow" version "7.1.2"
id "com.github.breadmoirai.github-release" version "2.2.12"
}
group "com.dunctebot"
version "1.0.1"
mainClassName = "org.springframework.boot.loader.JarLauncher"
sourceCompatibility = 11
compileJava.options.encoding = "UTF-8"
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
// Transitive dependencies
maven { url "https://m2.dv8tion.net/releases" }
jcenter()
}
dependencies {
implementation "io.jsonwebtoken:jjwt:0.9.1"
implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'
compileOnly 'dev.arbjerg.lavalink:plugin-api:0.9.0'
runtimeOnly "com.github.freyacodes.lavalink:Lavalink-Server:dev-SNAPSHOT"
}
shadowJar {
def impl = project.configurations.implementation
impl.canBeResolved(true)
configurations = [impl]
archiveClassifier.set("")
}
publishing {
publications {
maven(MavenPublication) {
pom {
from components.java
}
}
}
}
githubRelease {
token System.getenv("GITHUB_TOKEN") ?: ""
owner "DuncteBot"
repo "tts-plugin"
targetCommitish System.getenv("RELEASE_TARGET") ?: ""
releaseAssets shadowJar.outputs.files
tagName version
releaseName version
overwrite false
prerelease false
body changelog()
}