-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
84 lines (74 loc) · 2.6 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
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds/
*/
buildscript {
ext {
springBootVersion = '2.1.1.RELEASE'
// springBootVersion = '2.0.0.RELEASE'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'eclipse-wtp'
}
subprojects {
repositories {
mavenCentral()
jcenter()
flatDir {
dirs 'lib'
}
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
// apply from: 'gradle/plugins/projectDependencyReport.gradle'
apply plugin: 'java'
apply plugin: 'groovy'
sourceCompatibility = 1.8 // sourceCompatibility should be applied after java plugin
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
//apply plugin: 'war'
apply from: "$rootProject.projectDir/gradle/plugins/projectDependencyReport.gradle"
apply from: "$rootProject.projectDir/gradle/plugins/publish/mavenPublish.gradle"
dependencyManagement {
imports {
// 7
mavenBom("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
}
}
configurations {
providedRuntime
}
dependencies {
implementation 'org.apache.httpcomponents:httpclient'
constraints {
implementation('org.apache.httpcomponents:httpclient:4.5.3') {
because 'previous versions have a bug impacting this application'
}
implementation('commons-codec:commons-codec:1.11') {
because 'version 1.9 pulled from httpclient has bugs affecting this application'
}
}
implementation 'org.javassist:javassist'
constraints {
implementation('org.javassist:javassist:3.24.0-GA') {
because "Getting java.lang.ClassNotFoundException: javassist.bytecode.ClassFile with previous version when springBootVersion updated to 2.1.1.RELEASE from 2.0.0.RELEASE"
}
}
//Added below two dependency for SPOCK test cases
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile group: 'org.spockframework', name: 'spock-core', version: '1.2-groovy-2.5'
testCompile group: 'org.spockframework', name: 'spock-spring', version: '1.2-groovy-2.5'
}
}