forked from OpenBankProject/Hello-OBP-SpringBoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (60 loc) · 1.72 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
buildscript {
ext {
springBootVersion = '2.1.2.RELEASE'
}
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id 'net.ltgt.apt' version '0.10' // https://projectlombok.org/setup/gradle
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
jar {
baseName = 'obp-clientapi-client'
version = '1.0.0'
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', 'Finchley.SR2')
}
sourceCompatibility = JavaVersion.VERSION_1_10
targetCompatibility = JavaVersion.VERSION_1_10
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile('org.joda:joda-money:1.0.1')
compileOnly('org.projectlombok:lombok')
apt('org.projectlombok:lombok')
implementation('org.springframework.cloud:spring-cloud-starter-openfeign')
compile('org.springframework.boot:spring-boot-starter-security')
compile('org.joda:joda-money:1.0.1')
compile('org.projectlombok:lombok')
testCompile("junit:junit")
testCompile('org.springframework.boot:spring-boot-starter-test')
}
test {
systemProperties = System.properties
testLogging {
events "passed", "skipped", "failed", "standardError"
}
}
task copyStaticResources(type: Copy) {
from "${sourceSets.main.resources}/static"
into "${sourceSets.main.output.resourcesDir}/static"
}
bootRun {
dependsOn copyStaticResources
}