-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
66 lines (55 loc) · 1.5 KB
/
build.gradle
File metadata and controls
66 lines (55 loc) · 1.5 KB
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
plugins {
id 'java'
id 'application'
id "com.heroku.sdk.heroku-gradle" version "2.0.0"
id 'de.schablinski.activejdbc-gradle-plugin' version '1.5.2'
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//core
implementation 'org.telegram:telegrambots:6.3.0'//491
implementation 'org.telegram:telegrambotsextensions:6.3.0'
//db
implementation 'org.postgresql:postgresql:42.2.18.jre6'
implementation 'org.javalite:activejdbc:2.4-j8'
//emoji support
implementation 'com.vdurmont:emoji-java:5.1.1'
//test
testImplementation 'junit:junit:4.12'
}
application {
mainClassName = 'randchat.App'
}
project.configurations.implementation.setCanBeResolved(true)
jar {
baseName = 'app'
version = '0.0.1'
manifest {
attributes(
'Main-Class': 'randchat.App',
'Class-Path': configurations.implementation.collect { it.getName() }.join(' ')
)
}
dependsOn ('dependencies')
}
distributions {
main {
contents {
into("lib") {
from(configurations.runtime)
}
from(jar)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}
}
task copyToLib(type: Copy) {
into "$buildDir/libs"
from configurations.implementation
}
task stage(dependsOn: ['copyToLib','build', 'clean'])
build.mustRunAfter clean