一、前言

二、多模块构建

1.工程结构

父工程:weixin-service

子模块:weixin-gz

weixin-qy

2.父工程 weixin-service

(1)build.gradle

buildscript {
ext {
springBootVersion = '2.0.1.RELEASE'
}
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
//mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
} //配置所有项目
allprojects {
//应用插件
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management' //公共属性
group = 'com.ray.weixin'
version = '0.0.1-SNAPSHOT' //编译属性
sourceCompatibility = 1.8
targetCompatibility = 1.8 } //构建依赖
subprojects { repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
} dependencies {
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.boot:spring-boot-starter-validation')
compile('org.springframework.boot:spring-boot-starter-web')
compileOnly('org.projectlombok:lombok') // 5. jackson
compile ('com.alibaba:fastjson:1.2.44') //6. Redis
compile('org.springframework.boot:spring-boot-starter-data-redis') //7.Quartz
compile('org.springframework.boot:spring-boot-starter-quartz') testCompile('org.springframework.boot:spring-boot-starter-test')
}
} repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}

(2)settings.gradle

rootProject.name = 'weixin-service'
include 'weixin-gz'
include 'weixin-qy'

3.子模块 weixin-gz

dependencies {

}

4.子模块 weixin-qy

dependencies {

}

三、参考资料

1.

最新文章

  1. javascript中的操作符详解1
  2. Tab切换类型
  3. Jdk1.8+Eclipse+MySql+Tomcat开发Java应用的环境搭建
  4. java 版本安装
  5. bzoj 3626 [LNOI2014]LCA(离线处理+树链剖分,线段树)
  6. Android -> 怎样避免Handler引起内存泄露
  7. H.265/HEVC Codec 编解码 (MP4 和 TS)
  8. Enum in Java
  9. postman 第1节 安装启动(转)
  10. VS2017无法发现单元测试,不能运行单元测试的解决方案
  11. Sublime Text3 调色板 ColorPicker插件安装及快捷键
  12. 后台编辑器组件VmEditor
  13. Go语言执行流程
  14. PHP数据库环境配置
  15. uboot下的网络终端/控制台
  16. php中session入memcached
  17. 怎么掌握微信小程序的取值、传值、数据存储
  18. Hive学习之路 (十四)Hive分析窗口函数(二) NTILE,ROW_NUMBER,RANK,DENSE_RANK
  19. uva 10721 - Bar Codes(dp)
  20. 用 phpize 编译共享 PECL 扩展库

热门文章

  1. End to End 端到端
  2. MySQL安装后的设定及其变量(参数)的设置
  3. django 查询
  4. ajax json 异步请求
  5. Boostrap常用组件英文名
  6. PAT 天梯赛 L1-040. 最佳情侣身高差 【水】
  7. git操作整理
  8. OpenCV图片拼接的两种方法
  9. Python编程-模块和包
  10. [Python] 弗洛伊德(Floyd)算法求图的直径并记录路径