-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
142 lines (120 loc) · 4.25 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
plugins {
id 'java'
id 'war'
id 'org.springframework.boot' version "2.6.7"
id 'io.spring.dependency-management' version "1.1.0"
}
group = 'org.mskcc.limsrest'
sourceCompatibility = '17'
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
}
}
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://jitpack.io' }
maven { url "${nexusUrlReleases}"
allowInsecureProtocol = true}
}
if (target == 'dev'){
copy {
from "src/dev/resources"
into "src/main/resources"
}
//version += 'd'
} else if(target == 'test'){
copy {
from "src/test-site-res/resources"
into "src/main/resources"
}
} else if(target == 'local'){
copy {
from "src/local/resources"
into "src/main/resources"
}
version += 'l'
} else {
copy {
from "src/production/resources"
into "src/main/resources"
}
}
repositories {
mavenCentral()
mavenLocal()
maven { url "${nexusUrlReleases}"
allowInsecureProtocol = true}
maven { url 'https://jitpack.io' }
}
configurations {
providedRuntime
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
dependencies {
implementation fileTree (dir: 'libs', include: '*.jar')
implementation('com.github.mskcc:smile-messaging-java:1.3.1.RELEASE')
implementation('com.github.mskcc:smile-commons:1.3.1.RELEASE')
implementation 'com.sun.activation:javax.activation:1.2.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
implementation group: 'org.yaml', name: 'snakeyaml', version: '1.23'
implementation group: 'org.json', name: 'json', version: '20180130'
testImplementation(group: 'org.springframework', name: 'spring-test', version: '5.1.6.RELEASE')
testImplementation('org.springframework.boot:spring-boot-starter-test')
implementation "io.springfox:springfox-swagger-ui:2.9.2"
implementation "io.springfox:springfox-swagger2:2.9.2"
implementation "org.springframework.boot:spring-boot-starter-security:2.6.7"
implementation "org.springframework.boot:spring-boot-starter-tomcat:2.6.7"
implementation "org.springframework.boot:spring-boot-starter-web:2.6.7"
testImplementation(group: 'org.springframework', name: 'spring-test', version: '5.1.6.RELEASE')
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.6.7'
implementation ('javax.servlet:jstl:1.2')
implementation "com.google.guava:guava:16+"
implementation group: 'commons-logging', name: 'commons-logging', version: '1.2'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
implementation 'junit:junit:4.13.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
testImplementation ('io.rest-assured:rest-assured:3.0.1')
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.16.0'
implementation('org.junit.jupiter:junit-jupiter:5.4.0')
implementation 'org.assertj:assertj-core:3.9.0'
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testCompileOnly 'org.projectlombok:lombok:1.18.20'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
}
tasks.named('test', Test) {
useJUnitPlatform()
maxHeapSize = '1G'
testLogging {
events "passed"
}
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/java')
}
resources.srcDir file('src/integration-test/resources')
}
}
task integrationTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
description = "Integration Tests"
outputs.upToDateWhen { false }
}
repositories {
mavenCentral()
mavenLocal()
maven { url "${nexusUrlReleases}"
allowInsecureProtocol = true}
}