-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (38 loc) · 978 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
43
44
45
46
47
48
49
50
51
plugins {
id 'java'
}
apply plugin: 'application'
mainClassName = "com.paypermonth.bot.Main"
version '1.0.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile fileTree(dir: 'library', include: '*.jar')
testCompile group: 'junit', name: 'junit', version: '4.12'
compile "org.telegram:telegrambots:3.6"
compile(group: 'postgresql', name: 'postgresql', version: '9.0-801.jdbc4')
}
apply plugin: 'java'
jar {
manifest {
attributes 'Main-Class': 'com.paypermonth.bot.Main'
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.paypermonth.bot.Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories {
maven { url 'http://repo1.maven.org/maven2' }
jcenter { url "http://jcenter.bintray.com/" }
}
task stage() {
dependsOn clean, jar, fatJar
}