This repository has been archived by the owner on Aug 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (57 loc) · 1.54 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
import groovy.io.FileType
apply plugin: 'java'
apply plugin: 'eclipse'
archivesBaseName = "AmadeusCore"
version = "2.0.0.0-alpha"
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
eclipse {
project {
name = 'AmadeusCore'
}
}
def generatedResources = "$buildDir/generated-resources/main"
sourceSets {
main {
output.dir(generatedResources, builtBy: "generateResources")
}
}
task generateResources(dependsOn: processResources) {
doLast {
def list = []
def out = new File(generatedResources, 'amadeus/languages')
out.mkdirs()
out = new File(generatedResources, 'amadeus/languages/langlist.txt')
def folder = new File(sourceSets.main.output.resourcesDir, '/amadeus/languages')
folder.eachFileRecurse FileType.FILES, { file ->
if (file.name.endsWith(".lang") || file.name.endsWith(".cmds"))
list << file.name
}
out.text = list.join("\n")
}
}
task fatJar(type: Jar) {
baseName = project.name + "-all"
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
with jar
}
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
dependencies {
compile "com.discord4j:Discord4J:2.10.1"
compile "org.xerial:sqlite-jdbc:3.8.11.2"
compile "com.google.code.gson:gson:2.8.2"
compile "org.apache.logging.log4j:log4j-slf4j-impl:2.7"
compile "org.apache.logging.log4j:log4j-api:2.7"
compile "org.apache.logging.log4j:log4j-core:2.7"
}