12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
- plugins {
- id("org.springframework.boot") version "2.3.4.RELEASE"
- id("io.spring.dependency-management") version "1.0.10.RELEASE"
- kotlin("jvm") version "1.3.72"
- kotlin("plugin.spring") version "1.3.72"
- kotlin("plugin.jpa") version "1.3.72"
- }
- group = "com.hikari"
- version = "0.0.1-SNAPSHOT"
- java.sourceCompatibility = JavaVersion.VERSION_11
- val repoConf: String = System.getProperty("repoPath") ?: "/var/repo"
- val repoPath: String = file("$rootDir").toPath().root.resolve(repoConf).toString()
- repositories {
- // 阿里云镜像
- maven { url = uri("https://maven.aliyun.com/repository/public") }
- maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
- maven { url = uri("https://maven.aliyun.com/repository/spring") }
- maven { url = uri("https://maven.aliyun.com/repository/spring-plugin") }
- maven {
- name = "localRepo"
- url = uri("file://$repoPath")
- }
- maven {
- name = "cc-lotus"
- url = uri("https://maven.cc-lotus.info/repository/maven-public/")
- }
- }
- extra["springCloudVersion"] = "Hoxton.SR8"
- dependencies {
- implementation("org.springframework.boot:spring-boot-starter-data-jpa")
- implementation("org.springframework.boot:spring-boot-starter-webflux")
- implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
- implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
- implementation("org.jetbrains.kotlin:kotlin-reflect")
- implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
- implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
- implementation("org.springframework.cloud:spring-cloud-starter-gateway")
- implementation("cc-lotus.gaf3:gaf-core-shared:3.0.928")
- runtimeOnly("mysql:mysql-connector-java")
- testImplementation("org.springframework.boot:spring-boot-starter-test") {
- exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
- }
- testImplementation("io.projectreactor:reactor-test")
- }
- dependencyManagement {
- imports {
- mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
- }
- }
- tasks.withType<Test> {
- useJUnitPlatform()
- }
- tasks.withType<KotlinCompile> {
- kotlinOptions {
- freeCompilerArgs = listOf("-Xjsr305=strict")
- jvmTarget = "11"
- }
- }
|