-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (32 loc) · 860 Bytes
/
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
group 'pl.husarz'
version '1.0'
apply plugin: 'java'
sourceCompatibility = 1.8
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': 'pl.husarz.bot.PlemionaBot'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories {
mavenCentral()
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.15'
}
jar {
manifest {
attributes(
'Main-Class': 'pl.husarz.bot.PlemionaBot'
)
}
}