-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (64 loc) · 2.21 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
69
70
71
buildscript {
ext {
springBootVersion = "2.2.2.RELEASE"
springContextVersion = "2.0.5"
springTelegrambotVersion = "4.1.2"
log4jVersion = "2.12.1"
mongoDbDriverVersion = "3.12.1"
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}",
"org.springframework:spring-context:${springContextVersion}",
"org.telegram:telegrambots-spring-boot-starter:${springTelegrambotVersion}",
"org.apache.logging.log4j:log4j-core:${log4jVersion}",
"org.apache.logging.log4j:log4j-api:${log4jVersion}"
)
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'war'
apply plugin: 'application'
mainClassName = 'com.euroaccountant.ApplicationMainClass'
group = 'com.euroaccountant'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'FatJarBot',
'Implementation-Version': version,
'Main-Class': mainClassName
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot",
"org.springframework.boot:spring-boot-starter-web",
"org.springframework.boot:spring-boot-starter-security",
"org.apache.logging.log4j:log4j-api",
"org.apache.logging.log4j:log4j-core",
"org.telegram:telegrambots-spring-boot-starter:${springTelegrambotVersion}")
developmentOnly('org.springframework.boot:spring-boot-devtools')
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
}