-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile_dev.gradle
More file actions
95 lines (86 loc) · 2.72 KB
/
profile_dev.gradle
File metadata and controls
95 lines (86 loc) · 2.72 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
sourceSets {
test {
java {
exclude 'com/iteratec/teamdojo/config/PostgreSqlTestContainer.java'
}
}
}
dependencies {
developmentOnly "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
implementation "com.h2database:h2"
testImplementation "org.testcontainers:postgresql"
}
def profiles = "dev"
if (project.hasProperty("no-liquibase")) {
profiles += ",no-liquibase"
}
if (project.hasProperty("tls")) {
profiles += ",tls"
}
springBoot {
buildInfo {
properties {
time = null
}
}
}
bootRun {
args = ["--spring.profiles.active=${profiles}"]
}
task webapp(type: NpmTask) {
inputs.property('appVersion', project.version)
inputs.files("package-lock.json")
.withPropertyName('package-lock')
.withPathSensitivity(PathSensitivity.RELATIVE)
inputs.files("build.gradle")
.withPropertyName('build.gradle')
.withPathSensitivity(PathSensitivity.RELATIVE)
inputs.files("angular.json")
.withPropertyName('angular.json')
.withPathSensitivity(PathSensitivity.RELATIVE)
inputs.files("tsconfig.json", "tsconfig.app.json")
.withPropertyName("tsconfig")
.withPathSensitivity(PathSensitivity.RELATIVE)
inputs.dir("webpack/")
.withPropertyName("webpack/")
.withPathSensitivity(PathSensitivity.RELATIVE)
inputs.dir("src/main/webapp/")
.withPropertyName("webapp-source-dir")
.withPathSensitivity(PathSensitivity.RELATIVE)
outputs.dir("build/resources/main/static/")
.withPropertyName("webapp-build-dir")
dependsOn npmInstall
args = ["run", "webapp:build"]
environment = [APP_VERSION: project.version]
}
processResources {
inputs.property('version', version)
inputs.property('springProfiles', profiles)
filesMatching("**/application.yml") {
filter {
it.replace("#project.version#", version)
}
filter {
it.replace("#spring.profiles.active#", profiles)
}
}
}
task integrationTest(type: Test) {
maxHeapSize = "1G"
useJUnitPlatform()
description = "Execute integration tests."
group = "verification"
include "**/*IT*", "**/*IntTest*"
testLogging {
events 'FAILED', 'SKIPPED'
}
systemProperty('spring.profiles.active', 'testdev')
systemProperty('java.security.egd', 'file:/dev/./urandom')
// uncomment if the tests reports are not generated
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
// ignoreFailures true
reports.html.enabled = false
}
integrationTest.dependsOn test
processResources.dependsOn webapp
bootJar.dependsOn processResources