加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle.kts 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
mwxmmy 提交于 2020-08-30 17:15 . 修复获取ip超时导致的程序卡死
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.3.3.RELEASE"
id("io.spring.dependency-management") version "1.0.10.RELEASE"
kotlin("jvm") version "1.3.72"
kotlin("plugin.spring") version "1.3.72"
}
group = "top.sshh"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
maven(uri("http://maven.aliyun.com/nexus/content/groups/public/"))
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation ("com.baomidou:mybatis-plus-boot-starter:3.3.2")
implementation ("mysql:mysql-connector-java:5.1.49")
implementation ("com.aliyun:aliyun-java-sdk-core:4.5.7")
implementation ("com.aliyun:aliyun-java-sdk-alidns:2.0.9")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compileOnly("org.projectlombok:lombok")
developmentOnly("org.springframework.boot:spring-boot-devtools")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化