-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.gradle
More file actions
113 lines (97 loc) · 2.87 KB
/
Copy pathbuild.gradle
File metadata and controls
113 lines (97 loc) · 2.87 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
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
buildscript {
ext {
javaVersion = "1.8"
javaeeVersion = "8.0"
facesVersion = "2.2.16"
slf4jVersion = "1.7.25"
lombokVersion = "1.16.20"
junitJupiterVersion = "5.0.2"
junitPlatformVersion = "1.0.2"
}
repositories {
// mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.junit.platform:junit-platform-gradle-plugin:$junitPlatformVersion"
}
}
plugins {
//id "ear"
id "war"
id "idea"
id "maven"
id "eclipse"
id "com.avast.gradle.docker-compose" version "0.6.13"
}
apply plugin: "org.junit.platform.gradle.plugin"
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()
maven { url "http://repository.primefaces.org" }
}
dependencies {
compile("com.sun.faces:jsf-api:$facesVersion")
compile("com.sun.faces:jsf-impl:$facesVersion")
// Tomcat requires weld-servlet:
compile("org.jboss.weld.servlet:weld-servlet:2.4.7.Final")
// prime faces
compile("org.primefaces:primefaces:6.2")
compile("org.primefaces.themes:all-themes:1.0.10")
// spring
compile("org.springframework:spring-context:4.3.14.RELEASE")
compile("org.springframework:spring-web:4.3.14.RELEASE")
// javax
compile("javax.inject:javax.inject:1")
providedCompile("javax.servlet:jstl:1.1.2")
providedCompile("javax:javaee-web-api:$javaeeVersion")
compileOnly("org.projectlombok:lombok:$lombokVersion")
testCompileOnly("org.projectlombok:lombok:$lombokVersion")
compile("org.slf4j:slf4j-api:$slf4jVersion")
compile("org.slf4j:slf4j-jdk14:$slf4jVersion")
testCompile("junit:junit:4.12")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
testImplementation("org.hamcrest:hamcrest-core:1.3")
testRuntime("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
testRuntime("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
testRuntime("org.junit.vintage:junit-vintage-engine:4.12.3")
testRuntime("org.junit.platform:junit-platform-launcher:$junitPlatformVersion")
testCompileOnly("org.apiguardian:apiguardian-api:1.0.0")
}
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"
}
idea {
module {
downloadSources = true
}
}
eclipse {
classpath {
downloadSources = true
}
}