-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·107 lines (89 loc) · 2.82 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
buildscript {
ext {
gradleVersion = '5.0'
springBootVersion = '1.5.14.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
//apply plugin: 'war'
apply plugin: 'application'
ext {
springBootCfServiceBrokerVersion = "2.4.0"
springBootVersion = '1.5.14.RELEASE'
baseName = 'openpaas-service-java-broker-glusterfs'
version = '2.4'
hibernateValidatorVersion = '5.1.0.Final'
jsonPathVersion = '0.9.1'
jacocoVersion = '0.8.4'
}
//war {
// baseName = baseName
// version = version
//}
mainClassName = 'org.openpaas.servicebroker.glusterfs.config.Application'
sourceCompatibility = 1.8
version = '1.0'
jar {
manifest {
attributes 'Title': 'Glusterfs Broker', 'Version': version, 'Main-Class': mainClassName
}
archiveName 'openpaas-service-java-broker-glusterfs.jar'
dependsOn configurations.runtime
from {
configurations.compile.collect {it.isDirectory()? it: zipTree(it)}
}
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/milestone"}
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
}
configurations {
providedRuntime
}
dependencies {
compile files('libs/openpaas-service-java-broker.jar')
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-security:${springBootVersion}")
//compile("org.hibernate:hibernate-validator:${hibernateValidatorVersion}")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
testCompile("com.jayway.jsonpath:json-path:${jsonPathVersion}")
testCompile("org.apache.httpcomponents:httpclient:4.4.1")
testCompile 'junit:junit:4.12'
testCompile 'com.sun.xml.security:xml-security-impl:1.0'
compile("org.apache.httpcomponents:httpclient:4.4.1")
compile("org.apache.commons:commons-dbcp2")
//runtime "mysql:mysql-connector-java:5.1.27"
/*[20210401]compile ('org.mariadb.jdbc:mariadb-java-client:1.2.0') {
exclude group: 'net.java.dev.jna'
}*/
runtime("org.mariadb.jdbc:mariadb-java-client:2.2.6")
compile "org.springframework:spring-jdbc:4.0.0.M3"
}
//task wrapper(type: Wrapper) {
// gradleVersion = '5.0'
//}
apply plugin: 'jacoco'
jacoco {
toolVersion = "${jacocoVersion}"
}
test {
ignoreFailures=true
jacoco {
destinationFile = file("$buildDir/jacoco/jacoco-overall.exec")
}
}