-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
115 lines (91 loc) · 4.03 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
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
114
115
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id "org.springframework.boot" version "2.2.4.RELEASE"
}
ext {
springBootVersion = '2.2.4.RELEASE'
springBootGradleVersion = '2.1.6.RELEASE'
springFrameworkSecurity = '4.1.3.RELEASE'
sourceCompatibility = 11
targetCompatibility = 11
group = 'cz.gov.monitor'
appName = 'govmon'
version = '0.0.1-SNAPSHOT'
jacksonCoreVersion = "2.9.6"
lombokVersion = '1.18.4'
httpClientVersion = '4.5.3'
logbackVersion = '1.2.3'
springFoxVersion = '2.8.0'
libraries = [
http_client : "org.apache.httpcomponents:httpclient:${httpClientVersion}",
mysql_driver : 'mysql:mysql-connector-java:8.0.13',
lombok : "org.projectlombok:lombok:${lombokVersion}",
springFox : "io.springfox:springfox-swagger2:${springFoxVersion}",
springFoxSwaggerUI : "io.springfox:springfox-swagger-ui:${springFoxVersion}",
springFoxValidators : "io.springfox:springfox-bean-validators:${springFoxVersion}",
jaxb : "javax.xml.bind:jaxb-api:2.2.11",
jackson_core : "com.fasterxml.jackson.core:jackson-core:${jacksonCoreVersion}",
spring_framework_security : "org.springframework.security:spring-security-core:${springFrameworkSecurity}",
spring_boot_starter_actuator : "org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}",
spring_boot_starter_security : "org.springframework.boot:spring-boot-starter-security:${springBootVersion}",
spring_boot_starter_web : "org.springframework.boot:spring-boot-starter-web:${springBootVersion}",
spring_boot_starter_test : "org.springframework.boot:spring-boot-starter-test:${springBootVersion}",
spring_boot_starter_data_jpa : "org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}",
//spring_boot_gradle_plugin : "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
]
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
springBoot {
// This statement tells the Gradle Spring Boot plugin to generate a file
// build/resources/main/META-INF/build-info.properties that is picked up by Spring Boot to display
// via /info endpoint
buildInfo {
properties {
// Generate extra build info:
additionalProperties = [
by: System.properties['user.name'],
operatingSystem: "${System.properties['os.name']} (${System.properties['os.version']})",
number: System.getenv('BUILD_NUMBER') ? System.getenv('BUILD_NUMBER') : "n/a",
machine: InetAddress.localHost.hostName
]
}
}
}
/*jar {
enabled = true
archiveBaseName = "${appName}"
archiveFileName = "${archiveBaseName}.thin.jar"
}*/
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation libraries.spring_boot_starter_actuator
implementation libraries.spring_boot_starter_web
implementation libraries.spring_boot_starter_security
implementation libraries.spring_framework_security
implementation libraries.spring_boot_starter_data_jpa
implementation libraries.http_client
implementation libraries.springFox
implementation libraries.springFoxValidators
implementation libraries.springFoxSwaggerUI
implementation libraries.jaxb
implementation libraries.jackson_core
implementation libraries.mysql_driver
implementation libraries.lombok
annotationProcessor libraries.lombok
testCompile libraries.spring_boot_starter_test
}
bootRun {
jvmArgs=["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5005"]
}
/*
tasks.withType<BootRun> {
jvmArgs = listOf("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5005")
}*/