buildscript { ext { springBootVersion = '2.3.0.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.8 targetCompatibility = 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 { compile('org.springframework.boot:spring-boot-starter-aop') compile('org.springframework.boot:spring-boot-starter-freemarker') compile('org.springframework.boot:spring-boot-starter-web') compile('org.springframework.boot:spring-boot-starter-jdbc') compile('org.springframework.boot:spring-boot-starter-security') runtime('org.springframework.boot:spring-boot-devtools') testCompile('org.springframework.boot:spring-boot-starter-test') //POI compile('org.apache.poi:poi:3.15') compile('org.apache.poi:poi-ooxml:3.15') //compile('org.apache.poi:poi-ooxml-schemas:3.15') //compile('org.apache.poi:poi-scratchpad:3.15') //compile('org.apache.xmlbeans:xmlbeans:2.6.0') //compile('org.apache.poi:poi:4.1.2') //compile('org.apache.poi:poi-ooxml:4.1.2') //JSON compile('com.alibaba:fastjson:1.2.33') //数据库驱动 compile files("/lib/sqljdbc6-4.1.jar") runtime('mysql:mysql-connector-java:6.0.6') //String的工具包 compile('org.apache.commons:commons-lang3:3.5') //本地缓存 compile group: 'com.google.guava', name: 'guava', version: '29.0-jre' //阿里duid compile group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.1.10' //compile('com.alibaba:easyexcel:3.1.2') //compile('com.alibaba:easyexcel:2.2.10') }