代码拉取完成,页面将自动刷新
同步操作将从 serv/cas 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
description = "Apereo Central Authentication Service $version"
defaultTasks "clean", "build"
ext {
publishSnapshots = Boolean.getBoolean("publishSnapshots")
publishReleases = Boolean.getBoolean("publishReleases")
sonatypeUsername = System.getProperty("sonatypeUsername")
sonatypePassword = System.getProperty("sonatypePassword")
/*
Open the Git repository in the current directory.
Get commit id of HEAD.
*/
git = org.ajoberstar.grgit.Grgit.open(file('.'))
def gitHead = git.head()
currentRevision = gitHead.id
currentAbbreviatedRevision = gitHead.abbreviatedId
}
def isArtifactSigningRequired = {
if (publishReleases && sonatypeUsername != null && sonatypePassword != null) {
return true
}
return false
}
apply from: rootProject.file("gradle/overrides.gradle")
apply from: rootProject.file("gradle/dependencies.gradle")
apply plugin: "com.gradle.build-scan"
buildScan {
licenseAgreementUrl = "https://gradle.com/terms-of-service"
licenseAgree = "yes"
licenseAgree = "yes"
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://maven.eveoh.nl/content/repositories/releases" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "http://repo.spring.io/plugins-release" }
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/snapshot" }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
classpath "com.netflix.nebula:gradle-lint-plugin:7.3.5"
classpath "org.standardout:gradle-versioneye-plugin:1.4.0"
classpath "org.springframework.build.gradle:propdeps-plugin:0.0.7"
classpath "com.gradle:build-scan-plugin:1.0"
classpath "org.ajoberstar:grgit:1.7.2"
classpath "io.spring.gradle:dependency-management-plugin:1.0.2.RELEASE"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.moowork.gradle:gradle-node-plugin:1.1.1"
}
}
allprojects {
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: "maven"
apply plugin: "signing"
apply plugin: "org.standardout.versioneye"
apply plugin: "nebula.lint"
if (project.name == "cas-server-support-bom") {
logger.info "Skipping pom generation for [$project.name], letting it create <dependency-management> entries on its own."
} else {
apply from: rootProject.file("gradle/maven.gradle")
}
gradleLint.rules = ["dependency-parentheses", "dependency-tuple"]
signing {
required = isArtifactSigningRequired
sign configurations.archives
}
idea {
module {
downloadSources = false
downloadJavadoc = false
excludeDirs = [file(".gradle")]
["classes", "bin", "docs", "dependency-cache", "libs", "reports", "resources", "test-results", "tmp"].each {
excludeDirs << file("$buildDir/$it")
}
}
}
signArchives.enabled = rootProject.publishReleases || rootProject.publishSnapshots
/*
Do NOT publish test dependencies into the final POM.
*/
conf2ScopeMappings.mappings.remove(configurations.findByName("testCompileOnly"))
conf2ScopeMappings.mappings.remove(configurations.findByName("testRuntimeOnly"))
}
subprojects {
task allDependenciesInsight(type: DependencyInsightReportTask, description: "Produce insight information for all dependencies") {
doLast {}
}
task allDependencies(type: DependencyReportTask, description: "Display a graph of all project dependencies") {
doLast {}
}
if (Boolean.getBoolean("enableKotlin")) {
apply plugin: "kotlin"
}
apply plugin: "java-library"
apply plugin: "checkstyle"
apply plugin: "findbugs"
apply plugin: "project-report"
apply plugin: "propdeps"
apply plugin: "propdeps-maven"
apply plugin: "propdeps-idea"
apply plugin: "propdeps-eclipse"
apply from: rootProject.file("gradle/tasks.gradle")
ext.libraries = rootProject.ext.libraries
repositories {
mavenLocal()
maven { url "https://build.shibboleth.net/nexus/content/repositories/releases" }
maven { url "https://raw.github.com/vt-middleware/maven-repo/master" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://oss.sonatype.org/content/repositories/releases" }
maven { url "http://repo.maven.apache.org/maven2" }
maven { url "https://jitpack.io" }
maven { url "http://developer.jasig.org/repo/content/groups/m2-legacy/" }
maven { url "http://files.couchbase.com/maven2" }
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/libs-snapshot" }
maven { url "https://dl.bintray.com/uniconiam/maven" }
jcenter()
}
test {
enabled = !Boolean.getBoolean("skipTests")
useJUnit()
scanForTestClasses = false
ignoreFailures = Boolean.getBoolean("ignoreTestFailures")
include "**/*Tests.*"
exclude "**/*Abstract*.*"
classpath = it.classpath + files("${projectDir}/src/main/resources") + files("${projectDir}/src/test/resources")
testLogging {
events = ["FAILED", "STANDARD_OUT"]
exceptionFormat = "full"
showStandardStreams = Boolean.getBoolean("showStandardStreams")
showExceptions = true
showCauses = true
}
}
configurations {
tests
}
configurations.all {
resolutionStrategy {
if (!Boolean.getBoolean("skipVersionConflict")) {
failOnVersionConflict()
}
preferProjectModules()
cacheDynamicVersionsFor 5, 'days'
cacheChangingModulesFor 5, 'days'
}
exclude(group: "ch.qos.logback", module: "logback-core")
exclude(group: "ch.qos.logback", module: "logback-classic")
exclude(group: "cglib", module: "cglib")
exclude(group: "cglib", module: "cglib-full")
}
artifacts {
tests testJar
archives sourcesJar
archives javadocJar
archives resourcesJar
archives testJar
}
sourceSets {
test.resources.srcDirs = ["${projectDir}/src/test/resources", "${projectDir}/src/test/java"]
}
ext.buildDate = null
ext.buildJarFile = new File(project.buildDir, "libs/${project.name}-${project.version}.jar")
compileJava.options.fork = true
if (Boolean.getBoolean("enableIncremental")) {
compileJava.options.incremental = true
}
def currentTime = java.time.ZonedDateTime.now()
compileJava.doLast {
buildDate = currentTime
jar.manifest {
attributes("Implementation-Date": project.buildDate)
}
}
tasks.jar.onlyIf {
project.buildDate != null || !project.buildJarFile.exists()
}
jar {
manifest {
attributes("Implementation-Title": project.name,
"Implementation-Vendor": project.group,
"Created-By": project.group,
"Specification-Version": rootProject.currentRevision,
"Implementation-Version": project.version)
}
}
checkstyle {
configFile new File(rootDir, "style/checkstyle-rules.xml")
configProperties = ["checkstyle.suppressions.file": new File(rootDir, "style/checkstyle-suppressions.xml")]
ignoreFailures false
showViolations true
toolVersion "${checkstyleVersion}"
}
checkstyleTest {
enabled = !Boolean.getBoolean("skipCheckstyle")
}
checkstyleMain {
enabled = !Boolean.getBoolean("skipCheckstyle")
}
versioneye {
includePlugins = false
includeSubProjects = true
exclude project.configurations.findAll { !it.canBeResolved }*.name as String[]
}
findbugs {
toolVersion = "${findbugsVersion}"
sourceSets = [sourceSets.main]
ignoreFailures = false
reportsDir = file("$project.buildDir/findbugsReports")
effort = "max"
reportLevel = "low"
includeFilter = file("$rootProject.projectDir/style/findbugs-rules.xml")
}
findbugsMain {
enabled = !Boolean.getBoolean("skipFindbugs")
reports {
xml.enabled = false
html.enabled = true
}
}
findbugsTest {
enabled = !Boolean.getBoolean("skipFindbugs")
}
dependencies {
implementation libraries.aspectj
implementation libraries.validationapi
api libraries.log4j
api libraries.guava
api libraries.commons
api libraries.jodatime
api libraries.inspektr
api libraries.spring
api libraries.jackson
api libraries.hibernate
api libraries.springcloud
api libraries.springboot
provided libraries.javax
if (Boolean.getBoolean("genConfigMetadata")) {
optional libraries.springbootconfigmetadata
}
if (!Boolean.getBoolean("skipFindbugs")) {
findbugs libraries.findbugs
findbugs configurations.findbugsPlugins.dependencies
findbugsPlugins libraries.findbugscontrib
findbugsPlugins libraries.findbugssec
}
testImplementation libraries.tests
runtimeOnly libraries.javaximpl
}
if (Boolean.getBoolean("genConfigMetadata")) {
compileJava.dependsOn(processResources)
}
}
task wrapper(type: Wrapper, description: "Gradle wrapper") {
gradleVersion = project.gradleVersion
}
task javadoc(type: Javadoc, description: "Aggregate all Javadocs into a single directory") {
source subprojects.collect { project -> project.sourceSets.main.allJava }
destinationDir = new File(buildDir, "javadoc")
classpath = files(subprojects.collect { project -> project.sourceSets.main.compileClasspath })
}
task aggregateJavadocsIntoJar(type: Jar, dependsOn: javadoc, description: "Aggregate all Javadocs into a single directory") {
classifier = "javadoc"
from javadoc
}
task rootSourcesJar(type: Jar, description: "Build JAR for the root CAS module") {
baseName = "${project.archivesBaseName}"
from rootProject.file("src")
}
artifacts {
archives aggregateJavadocsIntoJar
archives rootSourcesJar
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。