-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
110 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
plugins {
id 'org.springframework.boot' version '3.0.6'
id 'io.spring.dependency-management' version '1.1.0'
id 'java'
id 'maven-publish'
id 'signing'
id 'java-library'
}
group = 'io.github.tranngockhoa'
version = '0.0.1'
sourceCompatibility = '17'
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.data:spring-data-redis'
implementation 'org.springframework.boot:spring-boot-autoconfigure'
implementation "io.lettuce:lettuce-core"
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
implementation 'org.apache.commons:commons-pool2'
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
testImplementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
}
tasks.named('test') {
useJUnitPlatform()
}
jar {
enabled = true
archiveClassifier.set("")
}
publishing {
repositories {
maven {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = project.hasProperty("osshUserName") ? project.property("osshUserName") : ""
password = project.hasProperty("osshPassword") ? project.property("osshPassword") : ""
}
}
}
publications {
mavenJava(MavenPublication) {
groupId = 'io.github.tranngockhoa'
version '0.0.1'
artifactId = 'spring-boot-starter-redis'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'spring-boot-starter-redis'
description = 'spring-boot-starter-redis'
url = 'https://github.com/TranNgocKhoa/spring-boot-starter-redis.git'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'tranngockhoa'
name = 'Tran Ngoc Khoa'
email = 'tranngoc.khoa.spk@gmail.com'
}
}
scm {
connection = 'scm:git:git://github.com/TranNgocKhoa/spring-boot-starter-redis.git'
developerConnection = 'scm:git:ssh://github.com/TranNgocKhoa/spring-boot-starter-redis.git'
url = 'https://github.com/TranNgocKhoa/spring-boot-starter-redis.git'
}
}
}
}
}
signing {
sign publishing.publications
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
test {
useJUnitPlatform()
}