-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
88 lines (78 loc) · 2.37 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
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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
java
id("java-library")
id("com.vanniktech.maven.publish") version "0.29.0"
}
group = "io.github.lontten"
version = "2.117.11.RELEASE"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}
tasks.jar {
duplicatesStrategy = DuplicatesStrategy.FAIL
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates(rootProject.group.toString(), rootProject.name, rootProject.version.toString())
pom {
name = rootProject.name
description = "canal-spring-boot-starter"
inceptionYear = "2024"
url = "https://github.com/lontten/canal-spring-boot-starter/"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "lontten"
name = "lontten"
url = "https://github.com/lontten/"
}
}
scm {
url = "https://github.com/lontten/canal-spring-boot-starter/"
connection = "scm:git:git://github.com/lontten/canal-spring-boot-starter.git"
developerConnection = "scm:git:ssh://github.com:lontten/canal-spring-boot-starter.git"
}
}
}
repositories {
maven { url = uri("https://repo.maven.apache.org/maven2") }
maven { url = uri("https://jitpack.io") }
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
maven { url = uri("https://repo.spring.io/snapshot") }
}
dependencies {
// canal
api(libs.bundles.canal)
// springboot
implementation("org.springframework.boot:spring-boot-starter-web:2.7.18") {
exclude(group = "org.springframework.boot", module = "spring-boot-starter-tomcat")
}
// test
testImplementation(libs.junit.jupiter)
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.named<Test>("test") {
useJUnitPlatform()
}