fa736a36ab
- Mvc/Form/Security/Expression 관련 템플릿 및 테스트 구현 - 의존성 검증 및 업그레이드 스크립트 추가 (Thymeleaf 3.1.5 적용)
22 lines
1.1 KiB
Groovy
22 lines
1.1 KiB
Groovy
// ./gradlew -I gradle/thymeleaf-verification.init.gradle :thymeleafCompatibilityDependencies
|
|
// Read-only dependency resolution; does not override versions or the normal build.
|
|
gradle.projectsEvaluated {
|
|
def portal = gradle.rootProject
|
|
portal.tasks.register('thymeleafCompatibilityDependencies') {
|
|
doLast {
|
|
def output = new File(portal.buildDir, 'reports/thymeleaf-compatibility')
|
|
output.mkdirs()
|
|
['runtimeClasspath', 'testRuntimeClasspath'].each { name ->
|
|
def artifacts = portal.configurations.getByName(name).resolvedConfiguration.resolvedArtifacts
|
|
def rows = artifacts.findAll {
|
|
it.id.componentIdentifier instanceof org.gradle.api.artifacts.component.ModuleComponentIdentifier
|
|
}.collect {
|
|
"${it.moduleVersion.id.group}:${it.name}\t${it.moduleVersion.id.version}\t${it.file.name}"
|
|
}.sort()
|
|
new File(output, "${name}.tsv").text = rows.join('\n') + '\n'
|
|
}
|
|
println "Dependency evidence: ${output}"
|
|
}
|
|
}
|
|
}
|