You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
buildscript { ext { springBootVersion = '2.2.5.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") }}
apply plugin: 'java'apply plugin: 'eclipse'apply plugin: 'org.springframework.boot'apply plugin: 'io.spring.dependency-management'
sourceCompatibility = 1.8targetCompatibility = 1.8
repositories { maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' } maven { name "Bstek" ; url 'http://nexus.bsdn.org/content/groups/public/' } maven { name "M2" ; url 'https://plugins.gradle.org/m2/' }}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-aop' implementation 'org.springframework.boot:spring-boot-configuration-processor' implementation 'org.springframework.boot:spring-boot-devtools'// implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-freemarker' implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3' //测试
testCompile('org.springframework.boot:spring-boot-starter-test') testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version:'5.6.2' testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version:'5.6.2' testImplementation 'org.springframework.security:spring-security-test' //阿里duid
compile group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.1.10' compile("com.alibaba:fastjson:1.2.30") compile('org.apache.commons:commons-lang3:3.7') //poi处理excel表格
compile('org.apache.poi:poi:3.15') compile('org.apache.poi:poi-ooxml:3.15') //本地缓存
compile group: 'com.google.guava', name: 'guava', version: '29.0-jre' //数据库驱动
compile fileTree(dir: 'lib', include: ["*.jar"]); //邮件的包
compile('org.springframework.boot:spring-boot-starter-mail:2.0.4.RELEASE') //mybatis-genertor
compile group: 'org.mybatis.generator', name: 'mybatis-generator-core', version: '1.4.0'}
test { useJUnitPlatform()}
sourceSets { main { resources { //可以将java目录下的所有非.java资源打包到classes下
srcDir 'src/main/java' } }}
|