buildscript { ext { springBootVersion = '1.5.2.RELEASE' } repositories { //mavenCentral() maven { url "http://maven.aliyun.com/nexus/content/groups/public" } } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java' apply plugin: 'org.springframework.boot' jar { baseName = 'tt-india-2026' } sourceCompatibility = 1.8 targetCompatibility = 1.8 springBoot { mainClass = "com.ccl.tt.TTApplication" } repositories { //mavenCentral() maven { url "http://maven.aliyun.com/nexus/content/groups/public" } } dependencies { compile('org.springframework.boot:spring-boot-starter-data-jpa') compile('org.springframework.boot:spring-boot-starter-freemarker') compile('org.springframework.boot:spring-boot-starter-web') compile('org.springframework.boot:spring-boot-starter-security') //邮件的包 2023-05-15 LR 添加邮件的jar compile('org.springframework.boot:spring-boot-starter-mail:2.0.4.RELEASE') //compile('opensymphony:sitemesh:2.4.1') compile('org.apache.poi:poi:3.15') compile('org.apache.poi:poi-ooxml:3.15') compile('org.apache.commons:commons-lang3:3.5') compile('commons-io:commons-io:2.4') compile('commons-net:commons-net:3.6') compile('com.google.zxing:javase:3.3.0') compile('com.alibaba:fastjson:1.2.33') runtime('org.springframework.boot:spring-boot-devtools') //runtime('com.microsoft.sqlserver:sqljdbc4:4.0') //runtime('com.microsoft.sqlserver:sqljdbc6:4.1') //本地缓存 compile group: 'com.google.guava', name: 'guava', version: '29.0-jre' // httpclient compile('org.apache.httpcomponents:httpclient:4.5') //数据库驱动 //implementation(fileTree(dir: 'lib', include: '**/*.jar')) compile files("/lib/sqljdbc6-4.1.jar") runtime('net.sourceforge.jtds:jtds:1.3.1') runtime('mysql:mysql-connector-java:6.0.6') testCompile('org.springframework.boot:spring-boot-starter-test') //testCompile('com.hynnet:jacob:1.18') //阿里duid compile group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.1.5' }