123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- plugins {
- id 'org.springframework.boot' version '2.6.3' apply(false)
- id 'io.spring.dependency-management' version '1.0.11.RELEASE' apply(false)
- id 'java'
- id 'war'
- }
- // 所有子项目通用配置
- subprojects {
- group = 'com.songmao'
- version = '1.0.0'
- apply plugin: 'java'
- apply plugin: 'war'
- project (':analog-api', {
- apply plugin: 'org.springframework.boot'
- apply plugin: 'io.spring.dependency-management'
- })
- // Task type of JavaCompile
- tasks.withType(JavaCompile, {
- //enable compilation in a separate daemon process
- sourceCompatibility = 8
- targetCompatibility = 8
- //options.release = 8
- // default to true
- options.incremental = true
- // default to true
- options.failOnError = false
- // default to false
- options.fork = true
- options.encoding = "UTF-8"
- // default to true
- options.debug = true
- })
- // tag::repositories[]
- repositories {
- // 本地仓库
- mavenLocal()
- // ali 代理的central仓
- maven {url 'https://maven.aliyun.com/repository/central'}
- // ali 代理的central仓和jcenter仓的聚合仓
- maven {url 'https://maven.aliyun.com/repository/public'}
- maven {url 'https://maven.aliyun.com/repository/google'}
- maven {url 'https://maven.aliyun.com/repository/gradle-plugin'}
- maven {url 'https://maven.aliyun.com/repository/spring'}
- maven {url 'https://maven.aliyun.com/repository/spring-plugin'}
- maven {url 'https://maven.aliyun.com/repository/grails-core'}
- // 远程中央仓库
- mavenCentral()
- maven {url 'https://repo1.maven.org/maven2/'}
- maven {url 'https://plugins.gradle.org/m2/'}
- maven {url 'https://repo.spring.io/libs-milestone/'}
- maven {url 'https://repo.spring.io/plugins-release/'}
- maven {url 'https://repo.grails.org/grails/core/'}
- maven {url 'https://repository.apache.org/content/groups/public/'}
- maven {url 'https://repository.jboss.org/nexus/content/repositories/releases/'}
- // 配置使用其它nexus 私服
- maven {
- // 非https需要增加对不安全协议的信任
- allowInsecureProtocol true
- url 'http://nexus.ds-bay.com/content/groups/public/'
- credentials {
- username 'admin'
- password 'admin123'
- }
- }
- //maven {url 'others url'}
- }
- // end::repositories[]
- ext {
- lombok = '1.18.22'
- javax_annotation_api = '1.3.2'
- javax_servlet = '4.0.1'
- spring_boot = '2.6.1'
- spring = '5.3.13'
- // logback对spring的支持
- logback_ext_spring = '0.1.4'
- jackson = '2.11.2'
- // 工具类
- google_guava = '29.0-jre'
- // Java工具包类库,各种Util工具类
- hutool = '5.6.2'
- // (推荐)Forest,Java HTTP 客户端框架
- forest = '1.5.0-RC5'
- // alibaba 出品 excel 工具类, 需要 lombok 支持
- easyexcel = '3.0.5'
- }
- }
- // others project() {}
|