2 Star 4 Fork 3

糍粑/springboot2-kotlin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle.kts 2.53 KB
一键复制 编辑 原始数据 按行查看 历史
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.61"
kotlin("kapt") version "1.3.61"
base
}
allprojects {
group = "cn.acheng1314"
version = "0.0.1-SNAPSHOT"
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
}
repositories {
maven { url = uri("https://maven.aliyun.com/repository/public") }
maven { url = uri("https://maven.aliyun.com/repository/google") }
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
maven { url = uri("https://maven.aliyun.com/repository/spring-plugin") }
maven { url = uri("https://maven.aliyun.com/repository/apache-snapshots") }
maven { url = uri("http://oss.jfrog.org/artifactory/oss-snapshot-local/") }
mavenCentral()
}
subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
java.sourceCompatibility = JavaVersion.VERSION_1_8
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
sourceSets {
main {
kotlin {
}
}
}
task("createDirs") {
mkdir("src/main/kotlin")
mkdir("src/main/resources")
mkdir("src/test/kotlin")
mkdir("src/test/resources")
delete("src/main/java")
delete("src/test/java")
}
extra["springCloudVersion"] = "Hoxton.SR1"
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation(kotlin("stdlib-jdk8"))
compile("com.squareup.okhttp3:okhttp:4.2.2")
// https://mvnrepository.com/artifact/com.alibaba/fastjson
compile("com.alibaba:fastjson:1.2.62")
compile("ch.qos.logback:logback-classic:1.2.3")
compile("net.logstash.logback:logstash-logback-encoder:5.1")
implementation("org.apache.commons:commons-lang3:3.9")
}
repositories {
maven { url = uri("https://maven.aliyun.com/repository/public") }
maven { url = uri("https://maven.aliyun.com/repository/google") }
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
maven { url = uri("https://maven.aliyun.com/repository/spring-plugin") }
maven { url = uri("https://maven.aliyun.com/repository/apache-snapshots") }
maven { url = uri("http://oss.jfrog.org/artifactory/oss-snapshot-local/") }
mavenCentral()
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/pc_859107393/springboot2-kotlin.git
git@gitee.com:pc_859107393/springboot2-kotlin.git
pc_859107393
springboot2-kotlin
springboot2-kotlin
multiService

搜索帮助

0d507c66 1850385 C8b1a773 1850385