-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
43 lines (35 loc) · 1.13 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
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.1'
id 'java'
}
group 'me.bramhaag'
version '0.0.3-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = sourceCompatibility
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
dependencies {
compile 'net.dv8tion:JDA:3.3.1_276'
compile 'com.google.guava:guava:21.0'
compile 'com.jcabi:jcabi-manifests:1.1'
compile 'org.reflections:reflections:0.9.11'
compile 'org.apache.httpcomponents:httpclient:4.5.3'
compile 'com.moandjiezana.toml:toml4j:0.7.2'
compile 'me.bramhaag:bcf:0.2.4'
compileOnly 'org.jetbrains:annotations:15.0'
}
jar.manifest.attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'me.bramhaag.discordselfbot.Main',
'Version': version,
'Commit': System.getenv('GIT_COMMIT')?.substring(0, 7) ?: 'N/A (Local Build)',
'Date': new Date().format("E-MM-yyyy 'at' h:mm a"),
'Build': System.getenv('BUILD_NUMBER') ?: 'N/A (Local build)'
)
shadowJar {
archiveName "${rootProject.name}.jar"
}