68 Star 294 Fork 88

atcrab/crab

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 4.37 KB
一键复制 编辑 原始数据 按行查看 历史
青苗 提交于 2020-08-18 23:23 . crab 2.0 升级依赖优化代码
buildscript {
ext {
springBootVersion = "2.3.3.RELEASE"
mybatisPlusVersion = "3.3.2"
hikariCPVersion = "3.4.5"
swaggerVersion = "3.0.0"
joddVersion = "5.1.6"
crabVersion = "0.2"
}
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/central" }
jcenter()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
}
}
description = "Crab 2.0 WEB 快速开发框架"
// 项目配置
allprojects {
group "com.baomidou"
version "0.1"
}
// 子模块配置
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: "io.spring.dependency-management"
apply plugin: 'org.springframework.boot'
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs << "-Xlint:unchecked"
}
// 仓库配置
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://jitpack.io" }
jcenter()
}
configurations {
compile.exclude group: "ch.qos.logback"
compile.exclude group: "com.amazonaws"
compile.exclude group: "org.apache.tomcat"
compile.exclude module: "undertow-websockets-jsr"
compile.exclude module: "spring-boot-starter-tomcat"
compile.exclude module: "spring-boot-starter-logging"
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion"
}
dependencies {
// 文档
dependency("io.springfox:springfox-swagger2:${swaggerVersion}")
dependency("io.springfox:springfox-swagger-ui:${swaggerVersion}")
// 工具类
dependency("org.jodd:jodd-bean:${joddVersion}")
dependency("commons-io:commons-io:2.6")
dependency("org.apache.commons:commons-lang3:3.11")
dependency("org.projectlombok:lombok:1.18.12")
dependency("net.coobird:thumbnailator:0.4.11")
dependency("org.javers:javers-core:5.10.5")
dependency("com.google.zxing:core:3.4.0")
dependency("com.belerweb:pinyin4j:2.5.1")
dependency("com.baomidou:kisso:3.7.6")
dependency("org.freemarker:freemarker:2.3.30")
// 日志
dependency("org.slf4j:slf4j-api:1.7.25")
dependency("com.lmax:disruptor:3.4.2")
// 编译测试
dependency("javax.servlet:javax.servlet-api:4.0.1")
dependency("org.mockito:mockito-all:1.10.19")
dependency("org.databene:contiperf:2.3.4")
dependency("junit:junit:4.12")
// JVM 性能监控
dependency("net.bull.javamelody:javamelody-spring-boot-starter:1.85.0")
// orm db
dependency("com.baomidou:mybatis-plus-boot-starter:${mybatisPlusVersion}")
dependency("com.baomidou:mybatis-plus-generator:${mybatisPlusVersion}")
dependency("com.baomidou:mybatis-plus-extension:${mybatisPlusVersion}")
dependency("com.baomidou:crab-core:${crabVersion}")
dependency("com.zaxxer:HikariCP:${hikariCPVersion}")
dependency("org.postgresql:postgresql:42.2.14.jre7")
dependency("mysql:mysql-connector-java:8.0.21")
dependency("p6spy:p6spy:3.9.0")
}
}
// 依赖配置
dependencies {
implementation("org.slf4j:slf4j-api")
compileOnly("javax.servlet:javax.servlet-api")
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testAnnotationProcessor("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
// 编译测试
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("org.mockito:mockito-all")
testCompile("org.databene:contiperf")
testCompile("javax.servlet:servlet-api")
testCompile("junit:junit")
}
// 编译环境 JDK1.8
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/atcrab/crab.git
git@gitee.com:atcrab/crab.git
atcrab
crab
crab
master

搜索帮助