代码拉取完成,页面将自动刷新
同步操作将从 Collins/Crown 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
description = "Crown"
configurations.all {
//每隔100天检查远程依赖是否存在更新
resolutionStrategy.cacheChangingModulesFor 2400, 'hours'
// cache dynamic versions for 24*60 minutes
resolutionStrategy.cacheDynamicVersionsFor 24 * 60 * 60, 'seconds'
}
configurations {
compile.exclude group: "ch.qos.logback"
compile.exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
compile.exclude group: "org.springframework.boot", module: "spring-boot-starter-tomcat"
compile.exclude group: "org.apache.tomcat", module: "tomcat-jdbc"
}
buildscript {
repositories {
maven { url "https://repo.spring.io/plugins-release" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
group = "org.crown"
version = "1.0"
apply plugin: "java-library"
apply plugin: "org.springframework.boot"
apply plugin: 'jacoco'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
//options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "http://repo.maven.apache.org/maven2" }
maven { url "https://jitpack.io" }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
jcenter()
}
dependencies {
api("org.springframework.boot:spring-boot-starter:${springBootVersion}")
api("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
api("org.springframework.boot:spring-boot-starter-undertow:${springBootVersion}")
api("org.springframework.boot:spring-boot-starter-jdbc:${springBootVersion}")
api("org.springframework.boot:spring-boot-starter-aop:${springBootVersion}")
api("org.springframework.boot:spring-boot-starter-log4j2:${springBootVersion}")
api("com.baomidou:mybatis-plus-boot-starter:${mybatisPlusVersion}")
api("com.baomidou:mybatis-plus-generator:${mybatisPlusVersion}")
api("mysql:mysql-connector-java:8.0.13")
api("org.apache.commons:commons-lang3:3.8.1")
api("io.springfox:springfox-swagger-ui:${swaggerVersion}")
api("io.springfox:springfox-swagger2:${swaggerVersion}")
api("io.jsonwebtoken:jjwt:0.9.1")
api("org.apache.commons:commons-collections4:4.2")
api("commons-io:commons-io:2.5")
api("commons-codec:commons-codec:1.11")
api("org.hibernate:hibernate-validator:6.0.13.Final")
api("org.liquibase:liquibase-core:${liquibaseVersion}")
api("org.modelmapper:modelmapper:2.3.1")
api("com.vip.vjtools:vjkit:1.0.7")
api("p6spy:p6spy:3.8.0")
api("com.lmax:disruptor:3.3.11")
api("org.apache.shiro:shiro-spring:1.4.0")
annotationProcessor("org.projectlombok:lombok:${lombokVersion}")
compileOnly("org.projectlombok:lombok:${lombokVersion}")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
testCompile("org.apache.velocity:velocity-engine-core:2.0")
testCompile("org.projectlombok:lombok:${lombokVersion}")
testAnnotationProcessor("org.projectlombok:lombok:${lombokVersion}")
}
tasks.matching { it instanceof Test }.all {
testLogging.events = ["failed", "passed", "skipped"]
}
bootJar {
baseName = "crown"
version = ""
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
html.destination = new File("${buildDir}/jacocoHtml")
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'**/common/cons/Regex.class',
'**/common/modelmapper/jsr310/*.class',
'**/common/modelmapper/jdk8/FromOptionalConverter.class',
'**/common/modelmapper/jdk8/ToOptionalConverter.class',
'**/common/spring/BasicErrorController.class',
'**/common/undertow/UndertowServerFactoryCustomizer.class',
'**/common/spring/validator/ValidatorCollectionImpl.class',
'**/common/spring/CrownHandlerExceptionResolver.class',
'**/common/spring/.class',
'**/common/spring/ApplicationUtils.class',
'**/common/utils/Maps.class',
'**/common/utils/TypeUtils.class',
'**/common/shiro/*.class',
'**/common/utils/*.class',
'**/common/exception/*.class',
'**/common/spring/IEnumConverterFactory.class',
'**/framework/converter/BeanConverter.class',
'**/framework/emuns/ErrorCodeEnum.class',
'**/framework/exception/*.class',
'**/framework/responses/FailedResponse.class',
'**/framework/utils/ApiAssert.class',
'**/framework/utils/AntiSQLFilter.class',
'**/framework/utils/RequestUtils.class',
'**/framework/utils/ResponseUtils.class',
'**/framework/service/*.class',
'**/framework/responses/FailedResponse.class',
'**/generate/MysqlGenerator.class',
'**/framework/model/ErrorCode.class',
'**/framework/wrapper/*.class',
'**/framework/filter/CrownFilter.class'
])
})
}
}
check.dependsOn jacocoTestReport
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。