-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
46 lines (40 loc) · 1.01 KB
/
build.gradle.kts
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
plugins {
idea
java
`maven-publish`
`java-library`
id("io.freefair.lombok") version "8.6"
}
object Project {
const val GROUP = "com.jxpanda.r2dbc"
const val VERSION = "1.3.2"
}
allprojects {
group = Project.GROUP
version = Project.VERSION
}
configure(subprojects.filter { !it.name.endsWith("bom") }) {
apply(plugin = "idea")
apply(plugin = "java")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "io.freefair.lombok")
java {
sourceCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
dependencies {
implementation(rootProject.libs.spotbugs.annotations)
}
}
configure(subprojects.filter { it.name.startsWith("panda-r2dbc") }) {
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
groupId = Project.GROUP
artifactId = tasks.jar.get().archiveBaseName.get()
}
}
}
}