1 Star 1 Fork 0

周魏/spring-security-samples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
plugins {
id "checkstyle"
id "io.spring.javaformat" version "0.0.42"
id 'io.spring.nohttp' version '0.0.11'
}
allprojects {
apply plugin: 'checkstyle'
apply plugin: 'io.spring.javaformat'
dependencies {
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:0.0.42"
}
// Ensure every test task has at least a single test
tasks.withType(Test).configureEach {
afterSuite { desc, result ->
if (result.testCount == 0) {
throw new IllegalStateException("No tests were found. Ensure that useJUnitPlatform was used.")
}
}
}
// Spring Framework 6.1 requires -parameters to be able to introspect method parameter names
tasks.withType(JavaCompile) {
options.compilerArgs.add("-parameters")
}
tasks.matching { it.name == 'formatAot' }.all { task ->
task.enabled = false
}
tasks.matching { it.name == 'formatAotTest' }.all { task ->
task.enabled = false
}
tasks.matching { it.name == 'checkFormatAot' }.all { task ->
task.enabled = false
}
tasks.matching { it.name == 'checkFormatAotTest' }.all { task ->
task.enabled = false
}
tasks.matching { it.name == "checkstyleAot" }.all { task ->
task.enabled = false
}
tasks.matching { it.name == "checkstyleAotTest" }.all { task ->
task.enabled = false
}
}
if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}
repositories {
mavenCentral()
}
tasks.register('runAllTests') {
var allTasks = rootProject.getAllTasks(true)
var allTestsTasks = allTasks.values().collect { t ->
t.findAll { it.name == 'test' || it.name == 'integrationTest' }
}.flatten()
it.dependsOn {
allTestsTasks
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zwhx/spring-security-samples.git
git@gitee.com:zwhx/spring-security-samples.git
zwhx
spring-security-samples
spring-security-samples
main

搜索帮助