-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
132 lines (108 loc) · 4.93 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath "com.github.node-gradle:gradle-node-plugin:7.0.0"
}
}
plugins {
id 'org.springframework.boot' version '2.5.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "com.github.node-gradle.node" version "5.0.0"
id "org.sonarqube" version "4.3.1.3277"
}
sonar {
properties {
property "sonar.projectKey", "vaskocuturilo_Regions-Service"
property "sonar.organization", "vaskocuturilo"
property "sonar.host.url", "https://sonarcloud.io"
}
}
group = 'com.regions'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = "16"
repositories {
mavenCentral()
}
apply plugin: 'com.github.node-gradle.node'
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'mysql:mysql-connector-java'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
annotationProcessor "org.projectlombok:lombok-mapstruct-binding:0.2.0"
implementation "org.mapstruct:mapstruct:1.5.5.Final"
annotationProcessor "org.mapstruct:mapstruct-processor:1.5.5.Final"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '2.5.3'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-cache', version: '2.5.3'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security', version: '2.5.3'
implementation group: 'com.auth0', name: 'java-jwt', version: '4.4.0'
//Performance monitor dependencies
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '2.6.3'
//Lombok
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
testCompileOnly 'org.projectlombok:lombok:1.18.22'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
// Testing
testImplementation group: 'io.rest-assured', name: 'rest-assured', version: '4.5.0'
implementation group: 'io.rest-assured', name: 'json-path', version: '4.5.0'
implementation group: 'io.rest-assured', name: 'xml-path', version: '4.5.0'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.22.0'
implementation group: 'org.springdoc', name: 'springdoc-openapi-ui', version: '1.6.5'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.24.2'
}
test {
useJUnitPlatform()
}
targetCompatibility = JavaVersion.VERSION_16
test {
systemProperty 'spring.profiles.active', 'dev'
}
node {
// Whether to download and install a specific Node.js version or not
// If false, it will use the globally installed Node.js
// If true, it will download node using above parameters
// Note that npm is bundled with Node.js
download = false
// Version of node to download and install (only used if download is true)
// It will be unpacked in the workDir
version = "16.14.0"
// Version of npm to use
// If specified, installs it in the npmWorkDir
// If empty, the plugin will use the npm command bundled with Node.js
npmVersion = ""
// Version of Yarn to use
// Any Yarn task first installs Yarn in the yarnWorkDir
// It uses the specified version if defined and the latest version otherwise (by default)
yarnVersion = ""
// The npm command executed by the npmInstall task
// By default it is install but it can be changed to ci
npmInstallCommand = "install"
// The directory where Node.js is unpacked (when download is true)
workDir = file("${project.projectDir}/.gradle/nodejs")
// The directory where npm is installed (when a specific version is defined)
npmWorkDir = file("${project.projectDir}/.gradle/npm")
// The directory where yarn is installed (when a Yarn task is used)
yarnWorkDir = file("${project.projectDir}/.gradle/yarn")
// The Node.js project directory location
// This is where the package.json file and node_modules directory are located
// By default it is at the root of the current project
nodeProjectDir = file("${project.projectDir}/frontend/")
// Whether the plugin automatically should add the proxy configuration to npm and yarn commands
// according the proxy configuration defined for Gradle
// Disable this option if you want to configure the proxy for npm or yarn on your own
// (in the .npmrc file for instance)
nodeProxySettings = ProxySettings.SMART
}
npm_run_build {
}
task copyTask(type: Copy) {
from file("${project.projectDir}/frontend/build/")
into file("${project.projectDir}/src/main/resources/static")
}