-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
144 lines (119 loc) · 4.17 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
plugins {
id 'org.springframework.boot' version '2.5.2' apply false
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'jacoco'
id "org.sonarqube" version '2.8'
id 'maven-publish'
}
group = 'com.searchservice.ingress.lib'
//SNAPSHOT-REPO-VERSION
//version = '0.0.1-SNAPSHOT'
//RELEASE-REPO-VERSION
version = '0.0.1-RELEASE'
//MIXED-VERSION
//version = '0.0.1-MIXED'
sourceCompatibility = '11'
apply from: "gradle/sonar.gradle"
//apply plugin: 'maven-publish'
//======NEXUS CONFIGURATION=========
publishing {
publications {
maven(MavenPublication) {
//SNAPSHOT-REPO
//version = '1.0-SNAPSHOT'
//RELEASE-REPO
version = '1.0-RELEASE'
artifact("/libs/saas-egress-clientlib-fat-0.0.1.jar"){
extension 'jar'
}
}
}
repositories {
maven {
name 'nexus'
url 'http://localhost:8081/repository/nexus-client-egress-release/'
//url 'http://localhost:8081/repository/nexus-client-egress-snapshot/'
//url 'http://localhost:8081/repository/nexus-client-egress-public-group/'
allowInsecureProtocol = true
credentials {
username project.nexusUsername
password project.nexusPassword
}
}
}
}
dependencyManagement {
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
}
}
//// create FAT jar ////
task clientLibraryCustomJar(type: Jar) {
//bootRepackage.enabled = false
zip64 = true
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
//attributes 'Main-Class': 'com.solr.clientwrapper.BasicSampleApp'
}
baseName = 'saas-egress-clientlib-fat'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
apply plugin: "eclipse"
task integrationTest(type: Test) {
useJUnitPlatform()
description = "Execute integration tests."
group = "verification"
include "**/*IT*", "**/*IntTest*"
testLogging {
events 'FAILED', 'SKIPPED'
}
jvmArgs += '-Djava.security.egd=file:/dev/./urandom -Xmx256m'
if (project.hasProperty('testcontainers')) {
environment 'spring.profiles.active', 'testcontainers'
}
// uncomment if the tests reports are not generated
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
// ignoreFailures true
reports.html.enabled = false
}
check.dependsOn integrationTest
task testReport(type: TestReport) {
destinationDir = file("$buildDir/reports/tests")
reportOn test
}
task integrationTestReport(type: TestReport) {
destinationDir = file("$buildDir/reports/tests")
reportOn integrationTest
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web:2.6.2'
implementation 'org.springframework.boot:spring-boot-starter'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
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'
implementation "org.apache.commons:commons-lang3"
// https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.1'
implementation group: 'org.json', name: 'json', version: '20200518'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.1'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.13.1'
implementation group: 'joda-time', name: 'joda-time', version: '2.10.13'
//SolrJ
implementation group: 'org.springframework.data', name: 'spring-data-solr', version: '4.3.14'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-aop
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-aop', version: '2.5.4'
implementation group: 'org.jboss.logging', name: 'jboss-logging', version: '3.5.0.Final'
}
repositories {
mavenCentral()
jcenter()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}