-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
66 lines (55 loc) · 1.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
import com.centurylink.mdw.util.file.Packages
buildscript {
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
classpath("com.centurylink.mdw:mdw-common:${mdwVersion}")
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
group = 'com.centurylink.mdwdemo'
version = appVersion
description = "mdw-demo"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
sourceSets {
main {
java {
srcDirs "src/main/java"
srcDirs assetLoc
}
}
}
dependencies {
compile "com.centurylink.mdw:mdw-spring-boot:${mdwVersion}"
compile "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
compile "junit:junit:4.8.1"
// asset package dependencies
compileOnly fileTree(dir: "${assetLoc}", includes: ["**/*.jar"])
}
bootJar {
// Include app version in manifest for display in MDWHub
manifest {
attributes("App-Version": appVersion)
}
// Exclude assets from packaging to preserve mdw dynamicism
// (do not overlap packages between src/main/java and assets).
def packages = new Packages(file(assetLoc))
exclude {
packages.isAssetOutput(it.relativePath.toString())
}
}
task mdwTests(type: GradleBuild) {
dependsOn build
buildFile = "test.gradle"
tasks = ["test"]
startParameter.projectProperties = [include: 'com/centurylink/mdw/tests/workflow/StartStop.test']
}