代码拉取完成,页面将自动刷新
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.10.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()
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。