-
Notifications
You must be signed in to change notification settings - Fork 33
/
build.gradle
108 lines (82 loc) · 2.68 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
buildscript {
ext {
springBootVersion = "1.5.22.RELEASE"
slf4jVersion = "1.7.30"
logbackVersion = "1.2.3"
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/plugins-release' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath 'io.spring.gradle:propdeps-plugin:0.0.10.RELEASE'
classpath 'io.spring.gradle:dependency-management-plugin:1.0.6.RELEASE'
classpath 'org.springframework:springloaded:1.2.8.RELEASE'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'application'
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
testOutputDir = file('build-test')
}
}
bootRun {
addResources = true
}
bootRepackage {
enabled = false
withJarTask = jar
executable = false
}
springBoot {
mainClass = "com.avast.server.hdfsshell.MainApp"
}
repositories {
mavenCentral()
maven { url 'https://artifactory.int.avast.com/artifactory/maven' }
maven { url 'https://repo.spring.io/libs-release' }
maven { url 'https://repo.spring.io/plugins-release' }
}
jar {
manifest {
attributes("Implementation-Version": project.getVersion())
}
}
mainClassName = "com.avast.server.hdfsshell.MainApp"
allprojects {
tasks.withType(Javadoc).all { enabled = false }
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = theGroup
version = theVersion
dependencies {
compile "org.slf4j:slf4j-api:${slf4jVersion}"
compile "org.slf4j:log4j-over-slf4j:${slf4jVersion}"
compile "org.slf4j:jcl-over-slf4j:${slf4jVersion}"
compile "ch.qos.logback:logback-classic:${logbackVersion}"
compile 'javax.annotation:javax.annotation-api:1.3.2'
compile("org.springframework.boot:spring-boot-starter:${springBootVersion}"){
exclude group: 'log4j'
exclude group: 'common-logging'
}
compile "org.springframework.shell:spring-shell:1.2.0.RELEASE"
compile 'com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4'
compile 'com.kohlschutter.junixsocket:junixsocket-common:2.0.4'
compile "org.apache.commons:commons-lang3:3.3.2"
compile "org.apache.hadoop:hadoop-client:2.6.0"
testCompile 'junit:junit:4.12'
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
configurations {
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
all*.exclude group: 'log4j', module: 'log4j'
all*.exclude group: 'commons-logging'
}
}