代码拉取完成,页面将自动刷新
同步操作将从 atcrab/crab 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。