forked from ResearchCollectionsAndPreservation/scsb-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
149 lines (128 loc) · 4.9 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
buildscript {
ext {
springBootVersion = '3.1.2'
set('springCloudVersion', "2022.0.4")
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id "org.sonarqube" version "4.3.1.3277"
id 'io.spring.dependency-management' version '1.1.2'
id 'org.springframework.boot' version '3.1.2'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'jacoco'
//added to accept systemproperties while executing gradlew test cmd
test {
systemProperties = System.properties
useJUnitPlatform()
}
jar {
archiveBaseName = 'scsb-gateway'
archiveVersion = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.17
targetCompatibility = 1.17
repositories {
mavenCentral()
}
dependencies {
implementation fileTree(dir: '/data/commonjar', include: '*2.6.jar')
implementation('org.springframework.boot:spring-boot-starter-web-services')
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
implementation 'javax.servlet:javax.servlet-api:4.0.1'
implementation('commons-beanutils:commons-beanutils:1.9.4')
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.13.0'
implementation('org.codehaus.jettison:jettison:1.5.4')
implementation('org.springframework.boot:spring-boot-starter-thymeleaf')
implementation('org.apache.camel:camel-api:4.0.0')
implementation('org.apache.camel:camel-bindy:4.0.0')
implementation('org.apache.camel.springboot:camel-spring-boot-starter:4.0.0')
implementation('org.apache.camel:camel-activemq:4.0.0')
// implementation 'org.apache.camel:camel-cxf:3.17.0'
// implementation('org.apache.camel:camel-jms:3.20.4')
implementation 'org.apache.camel:camel-jms:4.0.0'
implementation('org.apache.camel:camel-ftp:4.0.0')
implementation('org.apache.camel:camel-csv:4.0.0')
implementation('info.freelibrary:freelib-marc4j:2.6.12')
testImplementation 'org.apache.camel:camel-jetty:4.0.0'
implementation('org.apache.solr:solr-solrj:9.3.0')
implementation('org.apache.activemq:activemq-camel:5.16.6')
implementation('org.apache.activemq:activemq-pool:5.18.2')
implementation('org.apache.activemq:activemq-broker:5.18.2')
implementation('org.apache.activemq:activemq-client-jakarta:5.18.2')
{exclude module: 'activemq-client'}
implementation('org.projectlombok:lombok:1.18.28')
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
// implementation 'org.springframework.boot:spring-boot-starter-activemq:3.1.2'
implementation 'net.logstash.logback:logstash-logback-encoder:7.4'
implementation 'io.zipkin.brave:brave:5.2.0'
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-bus-amqp'
implementation group: 'org.json', name: 'json', version: '20230618'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.5.0'
testImplementation group: 'org.powermock', name: 'powermock-api-mockito2', version: '2.0.9'
testImplementation group: 'org.powermock', name: 'powermock-module-junit4', version: '2.0.9'
annotationProcessor('org.projectlombok:lombok:1.18.28')
testImplementation('org.projectlombok:lombok:1.18.28')
testAnnotationProcessor('org.projectlombok:lombok:1.18.28')
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.33'
testImplementation('org.springframework.boot:spring-boot-starter-test')
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth:3.1.9'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
implementation 'org.springdoc:springdoc-openapi-ui:1.7.0'
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.apache.logging.log4j') {
details.useVersion '3.0.0-alpha1'
}
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
jacocoTestReport {
reports {
xml.required = true
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}
jacoco {
toolVersion = "0.8.10"
reportsDirectory = layout.buildDirectory.dir('customJacocoReportDir')
}
task scsbJavadocs(type: Javadoc) {
source = sourceSets.main.java
classpath = configurations.implementation
options.addStringOption('Xdoclint:none', '-quiet')
String home = System.getProperty("user.home");
destinationDir = new File(home+"/scsb-javadocs/scsb");
}
/*
bootJar {
layered()
} */
jar {
enabled = false
archiveClassifier = '' //use empty string
}
tasks.named('bootJar') {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}