-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
70 lines (54 loc) · 1.77 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
60
61
62
63
64
65
66
67
68
69
70
import org.apache.tools.ant.filters.ReplaceTokens
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id 'java'
id 'application'
id 'eclipse'
id 'idea'
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
mainClassName = 'net.betterplayer.betterplayer.BetterPlayer'
group = 'net.betterplayer.betterplayer'
version = '1.0'
sourceCompatibility = 1.16
targetCompatibility = 1.16
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://m2.dv8tion.net/releases' }
}
dependencies {
implementation 'net.dv8tion:JDA:4.3.0_310'
implementation 'com.google.guava:guava:30.1.1-jre'
implementation 'org.slf4j:slf4j-log4j12:1.7.29'
implementation 'com.sedmelluq:lavaplayer:1.3.77'
implementation 'org.json:json:20201115'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'org.apache.commons:commons-lang3:3.0'
implementation 'dev.array21:httplib:1.2.1'
implementation 'dev.array21:jdbd:1.1.0'
}
task releaseJar(type: ShadowJar) {
description 'Build a release Jar'
archiveClassifier = 'RELEASE'
manifest {
attributes('Main-Class': mainClassName)
}
from sourceSets.main.output
configurations = [project.configurations.runtimeClasspath]
destinationDirectory = file("$rootDir/releases")
}
//This task is for GitHub Actions only
task ghActions(type: ShadowJar) {
manifest.inheritFrom project.tasks.jar.manifest
description 'GitHub Actions Task. Do not use in regular development!'
version = ''
archiveClassifier = ''
archiveBaseName = 'output'
manifest {
attributes('Main-Class': mainClassName)
}
from sourceSets.main.output
configurations = [project.configurations.runtimeClasspath]
destinationDirectory = file("$rootDir/actions")
}