This repository was archived by the owner on Feb 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (58 loc) · 2.56 KB
/
build.gradle
File metadata and controls
68 lines (58 loc) · 2.56 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
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
setUrl 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath "de.sstoehr:har-reader:2.1.2"
}
}
plugins {
id "java"
id "org.springframework.boot" version "2.2.6.RELEASE"
id "io.freefair.lombok" version "5.0.0-rc6"
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.5'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.5'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.5'
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile group: 'de.otto.edison', name: 'edison-jobs', version: '2.2.7'
compile group: 'de.otto.edison', name: 'edison-core', version: '2.2.7'
compile group: 'de.otto.edison', name: 'edison-togglz', version: '2.2.7'
compile group: 'org.zaproxy', name: 'zap', version: '2.9.0'
compile group: 'org.zaproxy', name: 'zap-clientapi', version: '1.8.0'
compile group: 'de.sstoehr', name: 'har-reader', version: '2.1.2'
compile group: 'org.asynchttpclient', name: 'async-http-client', version: '2.12.1'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '2.2.6.RELEASE'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
}
compileJava.dependsOn(processResources)
jar {
baseName = project.name
manifest.attributes provider: 'gradle'
}
// Passing the active profile information in the case of a simple "gradle bootRun".
// Thanks to: https://github.com/spring-projects/spring-boot/pull/592
bootRun.systemProperties = System.properties
// File filtering and token replacement. Variables are defined in "gradle.properties" file and can be overridden e.g. via "-Pvcs_commit=${repository.revision.number}".
// Thanks to: https://docs.gradle.org/current/userguide/build_environment.html
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
filter ReplaceTokens, tokens: [
"application.version" : project.property("version"),
"application.vcs.commit" : vcs_commit,
"application.vcs.version" : project.property("version"),
"application.vcs.url" : vcs_url,
"application.build.url" : build_url,
"application.build.timestamp": build_timestamp
]
}