-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
113 lines (98 loc) · 3.25 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
plugins {
id 'java-library'
id 'jacoco'
id 'maven-publish'
id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0-rc-1'
id "org.sonarqube" version "4.2.1.3168"
}
group = 'io.github.shinusuresh'
version = hasProperty('version') ? property('version') : '0.1.1'
description = 'Spring boot library for ProductsUp platform'
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
dependencies {
api "org.springframework.boot:spring-boot-autoconfigure:3.1.2"
api "org.springframework.boot:spring-boot-starter-webflux:3.1.2"
api "org.springframework:spring-context-support:6.0.11"
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
testImplementation 'org.springframework.boot:spring-boot-starter-test:3.1.2'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.mock-server:mockserver-junit-jupiter:5.15.0'
testCompileOnly 'org.projectlombok:lombok:1.18.28'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
}
test {
useJUnitPlatform()
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc).configureEach {
options.encoding = 'UTF-8'
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components["java"])
pom {
afterEvaluate {
name = project.description
description = project.description
}
url = 'https://github.com/shinusuresh/productsup-client-spring-boot-starter.git'
licenses {
license {
name = "MIT License"
url = "http://www.opensource.org/licenses/mit-license.php"
}
}
developers {
developer {
id = 'shinusuresh'
name = 'Shinu Suresh'
email = 'mailtoshinu@gmail.com'
}
}
scm {
connection = 'scm:git:https://github.com/shinusuresh/productsup-client-spring-boot-starter.git'
developerConnection = 'scm:git:git://github.com/shinusuresh/productsup-client-spring-boot-starter.git'
url = 'https://github.com/shinusuresh/productsup-client-spring-boot-starter.git'
}
}
}
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
}
}
}
jacocoTestReport {
reports {
xml.required = true
}
}
sonar {
properties {
property "sonar.projectKey", "shinusuresh_productsup-client-spring-boot-starter"
property "sonar.organization", "shinusuresh"
property "sonar.host.url", "https://sonarcloud.io"
}
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}