forked from naver/spring-jdbc-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
160 lines (140 loc) · 4.99 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
150
151
152
153
154
155
156
157
158
159
160
import org.springframework.boot.gradle.plugin.SpringBootPlugin
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://repo.spring.io/milestone/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
allprojects {
group = "com.navercorp.spring"
version = "3.3.0-SNAPSHOT"
}
subprojects {
apply plugin: "java"
apply plugin: "java-library"
apply plugin: "idea"
apply plugin: "checkstyle"
apply plugin: "io.spring.dependency-management"
apply plugin: "maven-publish"
apply plugin: "signing"
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
maven {
url "https://repo.spring.io/milestone/"
}
}
dependencies {
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
testCompileOnly("com.google.code.findbugs:jsr305:3.0.2")
}
dependencyManagement {
imports {
mavenBom("${SpringBootPlugin.BOM_COORDINATES}") {
bomProperties([
'spring-data-bom.version': "${springDataBomVersion}"
])
}
}
}
checkstyle {
configFile = file("${project.rootDir}/rule/naver-checkstyle-rules.xml")
configProperties = ["suppressionFile": "${project.rootDir}/tool/naver-checkstyle-suppressions.xml"]
toolVersion = "9.1"
ignoreFailures = true // TODO: return to false
maxErrors = 0
maxWarnings = 0
}
test {
useJUnitPlatform()
}
tasks.withType(Javadoc).all { enabled = false }
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << '-parameters'
}
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
repositories {
maven {
def ossrhUsername = project.hasProperty("ossrhUsername") ? ossrhUsername : ""
def ossrhPassword = project.hasProperty("ossrhPassword") ? ossrhPassword : ""
credentials {
username ossrhUsername
password ossrhPassword
}
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith("SNAPSHOT") ? snapshotsRepoUrl : releasesRepoUrl
}
}
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = "Spring JDBC Plus"
description = "Spring JDBC Plus"
url = "http://github.com/naver/spring-jdbc-plus"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "mhyeon-lee"
name = "Myeonghyeon Lee"
email = "[email protected]"
}
developer {
id = "yd-2"
name = "Youngdae Lee"
email = "[email protected]"
}
developer {
id = "chanhyeong"
name = "Chanhyeong Cho"
email = "[email protected]"
}
developer {
id = "wool0826"
name = "Chanwool Jo"
email = "[email protected]"
}
}
scm {
connection = "scm:git:git://github.com/naver/spring-jdbc-plus.git"
developerConnection = "scm:git:git://github.com/naver/spring-jdbc-plus.git"
url = "https://github.com/naver/spring-jdbc-plus"
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
tasks.withType(Sign) {
onlyIf { !version.endsWith("SNAPSHOT") }
}
}