blob: 07dba200df2ee58db9a30f6b05376ebe671792c5 [file] [log] [blame]
buildscript {
ext {
springBootVersion = '2.0.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id "com.github.hierynomus.license" version "0.14.0"
id "com.moowork.node" version "1.1.0"
id "java"
id "eclipse"
id "idea"
}
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
jcenter()
}
configurations {
testPlugins {}
}
dependencies {
}
task wrapper(type: Wrapper) {
gradleVersion = '4.8.1'
}
apply from: 'gradle/license.gradle'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
task licenseFormatNode(type: com.hierynomus.gradle.license.tasks.LicenseFormat) {
source = fileTree(dir: "src").include("**/*")
source = fileTree(dir: "front-end/src").include("**/*")
}
licenseFormat.dependsOn licenseFormatNode
task licenseCheckNode(type: com.hierynomus.gradle.license.tasks.LicenseCheck) {
source = fileTree(dir: "src").include("**/*")
}
dependencyManagement {
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Finchley.SR2'
}
applyMavenExclusions = false
}
dependencies {
compile('org.springframework.boot:spring-boot-starter')
compile('org.springframework.boot:spring-boot-starter-test')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2')
compile('mysql:mysql-connector-java:5.1.37')
compile('com.alibaba:druid:1.1.4')
compile('org.springframework.boot:spring-boot-devtools')
compileOnly('org.projectlombok:lombok')
compile('javax.validation:validation-api:2.0.0.Final')
compile('io.jsonwebtoken:jjwt:0.9.0')
compile('org.xerial:sqlite-jdbc:3.21.0.1')
compile('org.springframework.cloud:spring-cloud-starter-netflix-zuul')
compile('com.github.pagehelper:pagehelper-spring-boot-starter:1.2.4')
compile('org.springframework.boot:spring-boot-starter-test')
}