代码拉取完成,页面将自动刷新
同步操作将从 侯坤林/中国行政区划代码 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
idea
java
application
id("org.springframework.boot") version "2.3.3.RELEASE"
id("io.spring.dependency-management") version "1.0.10.RELEASE"
kotlin("jvm") version "1.4.0"
kotlin("plugin.jpa") version "1.4.0"
kotlin("plugin.spring") version "1.4.0"
kotlin("kapt") version "1.4.0"
}
group = "com.china"
version = "1.0-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
application {
mainClassName = "com.china.region.Application"
}
kapt {
useBuildCache = false
correctErrorTypes = true
javacOptions {
option("-Xjsr305", "strict")
}
}
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenLocal()
maven("https://maven.aliyun.com/repository/public")
maven("https://repo1.maven.org/maven2")
maven { setUrl("https://repo.typesafe.com/typesafe/maven-releases/") }
mavenCentral()
jcenter()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-cache")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("com.baomidou:mybatis-plus-boot-starter:+")
implementation("joda-time:joda-time:2.10.3")
implementation("org.jsoup:jsoup:1.11.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
implementation("com.github.ben-manes.caffeine:caffeine")
runtimeOnly("mysql:mysql-connector-java")
runtimeOnly("com.h2database:h2")
// https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
runtimeOnly("org.xerial:sqlite-jdbc") // 3.32.3.2
developmentOnly("org.springframework.boot:spring-boot-devtools")
compileOnly("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
kapt("org.projectlombok:lombok")
kapt("org.springframework.boot:spring-boot-configuration-processor")
testImplementation("org.springframework.batch:spring-batch-test")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。