/
build.gradle
134 lines (109 loc) · 3.84 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
133
134
buildscript {
apply from: 'https://raw.githubusercontent.com/FINTprosjektet/fint-buildscripts/v1.8.0/dependencies.gradle'
ext {
springBootVersion = springBootVersion
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.25.0'
id 'com.github.kt3k.coveralls' version '2.8.4'
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'org.springframework.boot'
apply plugin: 'maven'
apply plugin: 'jacoco'
import org.apache.tools.ant.filters.ReplaceTokens
afterEvaluate {
configure(processResources) {
filesMatching('**/*.yml') {
filter(ReplaceTokens, tokens: [version: jar.version])
}
}
}
sourceCompatibility = 1.8
repositories {
maven {
url 'https://repo.fintlabs.no/releases'
}
mavenLocal()
jcenter()
}
dependencies {
compile('no.fint:fint-sse:1.4.1') {
exclude group: 'org.springframework.security.oauth', module: 'spring-security-oauth2'
}
compile('org.glassfish.jersey.core:jersey-client:2.29.1')
compile('org.glassfish.jersey.core:jersey-common:2.29.1')
compile('no.fint:fint-audit-azure-eventhub-plugin:1.0.0')
compile('io.projectreactor:reactor-core:3.3.2.RELEASE')
compile('no.fint:fint-events:2.3.1')
compile('no.fint:fint-event-model:3.0.1')
compile('no.fint:fint-springfox-extension:0.0.2')
compile('no.fint:fint-hazelcast:1.2.0')
compile('com.hazelcast:hazelcast:3.11.1')
compile('com.hazelcast:hazelcast-kubernetes:1.3.1')
compile('com.azure:azure-storage-blob:12.1.0')
compile("org.projectlombok:lombok:${lombokVersion}")
compile("com.github.springfox.loader:springfox-loader:${springfoxLoaderVersion}")
compile('com.github.fakemongo:fongo:2.1.1')
compile('com.jayway.jsonpath:json-path:2.4.0')
compile('org.reflections:reflections:0.9.11')
compile('org.apache.commons:commons-lang3:3.9')
compile('org.jooq:jool-java-8:0.9.14')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.apache.tomcat.embed:tomcat-embed-core:8.5.45')
//runtime('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('io.micrometer:micrometer-registry-prometheus:latest.release')
compile('io.micrometer:micrometer-spring-legacy:latest.release')
testCompile('no.fint:fint-test-utils:0.0.6')
testCompile("cglib:cglib-nodep:${cglibVersion}")
testCompile("org.spockframework:spock-spring:${spockSpringVersion}")
testCompile("org.spockframework:spock-core:${spockSpringVersion}")
testCompile('org.springframework.boot:spring-boot-starter-test')
}
task copyExternalDependencies(type: Copy) {
from configurations.runtime
into "$buildDir/deps/external"
exclude '**/fint-*.jar'
}
task copyFintDependencies(type: Copy) {
from configurations.runtime
into "$buildDir/deps/fint"
include '**/fint-*.jar'
}
build.dependsOn(copyExternalDependencies)
build.dependsOn(copyFintDependencies)
jar {
baseName = 'fint-provider'
manifest {
attributes(
"Manifest-Version": "1.0",
"Main-Class": "no.fint.provider.events.Application",
"Specification-Version": "${version}",
"Implementation-Version": "${version}",
"Class-Path": configurations.runtime.collect { it.getName() }.join(' ')
)
}
}
task wrapper(type: Wrapper) {
gradleVersion = gradleVersion
}
bootRepackage.enabled = false
bootRun {
systemProperties System.properties
}
jacocoTestReport {
reports {
xml.enabled true
}
}
apply from: 'https://raw.githubusercontent.com/FINTlibs/fint-buildscripts/v1.8.0/dependencyReport.gradle'