-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.gradle
More file actions
84 lines (69 loc) · 1.58 KB
/
build.gradle
File metadata and controls
84 lines (69 loc) · 1.58 KB
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
buildscript {
ext {
javaVersion = "1.8"
javaeeVersion = "8.0"
facesVersion = "2.2.16"
slf4jVersion = "1.7.25"
lombokVersion = "1.16.20"
}
}
plugins {
//id "ear"
id "war"
id "idea"
id "maven"
id "eclipse"
id "com.avast.gradle.docker-compose" version "0.6.13"
}
group = "daggerok"
version = "0.0.1"
sourceCompatibility = targetCompatibility = "$javaVersion"
//ear { archiveName = "${project.name}.ear" }
war {
archiveName = "${project.name}.war"
}
defaultTasks "clean", "build"
repositories {
// mavenLocal()
mavenCentral()
}
dependencies {
compile "com.sun.faces:jsf-api:$facesVersion"
compile "com.sun.faces:jsf-impl:$facesVersion"
providedCompile "javax:javaee-web-api:$javaeeVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.slf4j:slf4j-jdk14:$slf4jVersion"
}
def profile = project.hasProperty("profile") ? project.getProperty("profile") : "gradle"
dockerCompose {
useComposeFiles = [project.file("docker-compose-${profile}.yaml")]
// captureContainersOutput = true
captureContainersOutput = false
stopContainers = true
removeContainers = true
removeImages = "Local"
removeVolumes = true
removeOrphans = true
forceRecreate = true
waitForTcpPorts = false
projectName = project.name
}
composeUp.dependsOn assemble
task wrapper(type: Wrapper) {
gradleVersion = "4.6"
distributionType = "ALL"
}
test {
systemProperties "property": "value"
}
idea {
module {
downloadSources = true
}
}
eclipse {
classpath {
downloadSources = true
}
}