12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
- plugins {
- id("org.springframework.boot") version "2.3.6.RELEASE"
- id("io.spring.dependency-management") version "1.0.10.RELEASE"
- kotlin("jvm") version "1.4.10"
- kotlin("plugin.spring") version "1.4.10"
- }
- group = "jit.xms"
- version = "1.0.1116"
- java.sourceCompatibility = JavaVersion.VERSION_1_8
- val repoConf: String = System.getProperty("repoPath") ?: "/var/repo"
- val repoPath: String = file("$rootDir").toPath().root.resolve(repoConf).toString()
- repositories {
- maven {
- name = "localRepo"
- url = uri("file://$repoPath")
- }
- maven {
- name = "cc-lotus"
- url = uri("https://maven.cc-lotus.info/repository/maven-public/")
- }
- // 阿里云镜像
- 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") }
- }
- extra["springCloudVersion"] = "Hoxton.SR5"
- extra["gafVersion"] = "3.0.1127"
- extra["fastjsonVersion"] = "1.2.71"
- extra["xmsVersion"] = "1.0.1125"
- dependencies {
- 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:${property("gafVersion")}")
- implementation("cc-lotus.gaf3:gaf-core-services:${property("gafVersion")}")
- implementation("cc-lotus.gaf3:gaf-core-gateway:${property("gafVersion")}")
- implementation("com.alibaba:fastjson:${property("fastjsonVersion")}")
- implementation("jit.xms:xms-core-shared:${property("xmsVersion")}")
- implementation("jit.xms:xms-core-services:${property("xmsVersion")}")
- implementation("org.springframework.boot:spring-boot-starter-data-jpa")
- implementation("io.jsonwebtoken:jjwt-api:0.10.5")
- implementation("io.jsonwebtoken:jjwt-impl:0.10.5")
- implementation("io.jsonwebtoken:jjwt-jackson:0.10.5")
- implementation("org.webjars:webjars-locator-core")
- implementation("org.webjars:sockjs-client:1.0.2")
- implementation("org.webjars:stomp-websocket:2.3.3")
- implementation("org.webjars:bootstrap:3.3.7")
- implementation("org.webjars:jquery:3.1.1-1")
- testImplementation("org.springframework.boot:spring-boot-starter-test")
- testImplementation("io.projectreactor:reactor-test")
- implementation(fileTree("$rootDir/libs") { include("*.jar") })
- runtimeOnly("mysql:mysql-connector-java")
- }
- dependencyManagement {
- imports {
- mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
- }
- }
- tasks.withType<Test> {
- useJUnitPlatform()
- }
- tasks.withType<KotlinCompile> {
- kotlinOptions {
- freeCompilerArgs = listOf("-Xjsr305=strict")
- jvmTarget = "1.8"
- }
- }
|