-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (42 loc) · 1.2 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
plugins {
id 'java'
}
group 'net.foldingcoin.twitter2discord'
version '1.0.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven {
url 'https://maven.mcmoddev.com/'
}
}
dependencies {
compile group: 'net.darkhax.discordbotbase', name: 'DiscordBotBase', version: '1.0.15'
compile group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'T2D', 'Implementation-Version': '1.0.0', 'Main-Class': 'net.foldingcoin.twitter2discord.BotLauncher'
}
baseName = project.name + '-all'
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it).matching {
exclude 'META-INF/**.RSA'
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/log4j-provider.properties'
}
}
}
with jar
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'net.foldingcoin.twitter2discord.BotLauncher'
)
}
}