代码拉取完成,页面将自动刷新
同步操作将从 糍粑/springboot2-kotlin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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()
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。