-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
100 lines (85 loc) · 2.48 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
plugins {
id 'org.springframework.boot' version '2.6.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'io.github.xlffm3'
version = '1.0.1'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
}
test {
useJUnitPlatform()
}
bootJar {
enabled = false
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'io.github.xlffm3'
artifactId = 'query-counter'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'query-counter'
description = 'A library for counting queries for Spring Data JPA application'
url = 'https://github.com/xlffm3/query-counter'
licenses {
license {
name = "MIT License"
url = "https://github.com/JavaUnit/AutoParams/blob/main/LICENSE"
}
}
developers {
developer {
id = 'xlffm3'
name = 'Jinhong Park'
email = '[email protected]'
}
}
scm {
connection = "https://github.com/xlffm3/query-counter.git"
developerConnection = "https://github.com/xlffm3/query-counter.git"
url = "https://github.com/xlffm3/query-counter"
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username project.ossrhUsername
password project.ossrhPassword
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
}