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.
103 lines
3.7 KiB
103 lines
3.7 KiB
//声明gradle脚本自身需要使用的资源,优先执行
|
|
buildscript {
|
|
ext {
|
|
springBootVersion = '2.2.4.RELEASE'
|
|
}
|
|
repositories {
|
|
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
|
|
maven { url 'https://maven.aliyun.com/repository/spring/' }
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
|
|
}
|
|
// java编译的时候缺省状态下会因为中文字符而失败
|
|
|
|
}
|
|
|
|
//allprojects 所有项目共享的配置
|
|
allprojects {
|
|
apply plugin: 'groovy'
|
|
apply plugin: 'java'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'java-library'
|
|
version = '1.0'
|
|
sourceCompatibility = 8
|
|
targetCompatibility = 8
|
|
}
|
|
// subprojects : 所有子模块共享的配置
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'org.springframework.boot' //使用springboot插件
|
|
apply plugin: 'io.spring.dependency-management' //版本管理插件
|
|
// java编译的时候缺省状态下会因为中文字符而失败
|
|
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
|
|
// 配置所有子模块的依赖仓库地址
|
|
repositories {
|
|
maven { url 'https://maven.aliyun.com/repository/jcenter' }
|
|
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
|
|
maven { url 'https://maven.aliyun.com/repository/spring/' }
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
maven { url 'https://oss.sonatype.org/content/repositories/' }
|
|
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
//所有子模块共有依赖
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', includes: ['*.jar'])
|
|
|
|
implementation 'org.codehaus.groovy:groovy-all:2.3.11'
|
|
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
|
|
|
|
compile 'org.springframework.boot:spring-boot-devtools:2.1.14.RELEASE'
|
|
|
|
//jdbc
|
|
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
|
|
//alibaba druid
|
|
implementation 'com.alibaba:druid-spring-boot-starter:1.2.4'
|
|
//jdbc 驱动
|
|
implementation 'mysql:mysql-connector-java:8.0.22'
|
|
//mail
|
|
implementation 'org.springframework.boot:spring-boot-starter-mail'
|
|
//Jwt
|
|
implementation 'com.auth0:java-jwt:3.12.0'
|
|
//fastjson
|
|
implementation 'com.alibaba:fastjson:1.2.47'
|
|
//okhttp
|
|
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
|
|
//freemarker
|
|
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
|
|
//mybatis-plus
|
|
implementation 'com.baomidou:mybatis-plus-boot-starter:3.4.2'
|
|
//mybatis-plus-generator
|
|
implementation 'com.baomidou:mybatis-plus-generator:3.3.2'
|
|
//lombok
|
|
implementation 'org.projectlombok:lombok:1.18.12'
|
|
// commons
|
|
implementation 'commons-lang:commons-lang:2.6'
|
|
//aop log
|
|
implementation 'org.springframework.boot:spring-boot-starter-aop:2.4.2'
|
|
// OSS
|
|
implementation 'com.aliyun.oss:aliyun-sdk-oss:3.10.2'
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
|
|
|
|
implementation 'org.bitcoinj:bitcoinj-core:0.14.7'
|
|
compile 'org.apache.httpcomponents:httpclient:4.5.6'
|
|
compile 'org.apache.httpcomponents:httpcore:4.4.14'
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
//// jar 包名称自定义
|
|
//bootJar {
|
|
//// archiveBaseName = 'aaa' //不需要带后缀(默认形式,会自带版本号:aaa-0.0.1-SNAPSHOT.jar )
|
|
// archiveFileName = 'coin.jar' //需要加后缀
|
|
//}
|
|
|