-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (45 loc) · 1.17 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
plugins {
id 'java'
id 'maven-publish'
}
group = 'ru.pchelicam.cbrf'
version = '1.0'
repositories {
mavenCentral()
}
ext {
springVersion = '4.3.30.RELEASE'
junitVersion = '4.13.1'
}
dependencies {
implementation "org.springframework:spring-core:${springVersion}"
implementation "org.springframework:spring-context:${springVersion}"
implementation "org.springframework:spring-web:${springVersion}"
implementation "org.springframework:spring-remoting:2.0.8"
testImplementation "org.springframework:spring-test:${springVersion}"
testImplementation "junit:junit:${junitVersion}"
}
jar {
manifest {
attributes('Main-Class': 'ru.pchelicam.cbrf.Application')
}
}
task fatJar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': 'ru.pchelicam.cbrf.Application'
}
archivesBaseName = "${project.name}-jar-with-dependencies"
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
test {
useJUnit()
}