1 Star 0 Fork 0

lontten/canal-spring-boot-starter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle.kts 2.37 KB
一键复制 编辑 原始数据 按行查看 历史
lontten 提交于 2024-11-01 21:44 . 🔖 发布2.117.10.RELEASE
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()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lontten/canal-spring-boot-starter.git
[email protected]:lontten/canal-spring-boot-starter.git
lontten
canal-spring-boot-starter
canal-spring-boot-starter
main

搜索帮助