forked from marklogic-community/grove-spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (63 loc) · 1.66 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 {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.1.4.RELEASE"
classpath "com.github.jk1:gradle-license-report:1.6"
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: "com.github.jk1.dependency-license-report"
repositories {
jcenter()
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile "org.springframework.boot:spring-boot-starter-web"
compile "com.marklogic:marklogic-client-api:4.2.0"
compile "com.marklogic:ml-javaclient-util:3.13.3"
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile "com.marklogic:marklogic-junit:0.11.0"
testCompile "org.xmlunit:xmlunit-core:2.6.2"
testCompile "org.xmlunit:xmlunit-assertj:2.6.2"
// Neither Gradle nor Intellij are happy without both of these included, not sure why
testRuntime "org.junit.jupiter:junit-jupiter-api:5.3.0"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.3.0"
}
// Needed by Gradle 4.6+ - see https://www.petrikainulainen.net/programming/testing/junit-5-tutorial-running-unit-tests-with-gradle/
test {
useJUnitPlatform()
}
task buildPackage (type: Zip) {
from("src/main") {
into("spring-boot/src/main")
}
from(".") {
include "app.build.gradle"
into("spring-boot")
rename {
"build.gradle"
}
}
from(".") {
include "app.gradle.properties"
into("spring-boot")
rename {
"gradle.properties"
}
}
from(".") {
include "app.README.md"
into("spring-boot")
rename {
"README.md"
}
}
baseName "grove-spring-boot"
}