代码拉取完成,页面将自动刷新
同步操作将从 疯狂创客圈/caffeine-nien 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'org.owasp.dependencycheck'
buildscript {
apply from: "${rootDir}/gradle/dependencies.gradle"
repositories {
gradlePluginPortal()
mavenCentral()
}
dependencies {
classpath gradlePlugins.values()
classpath platforms.collect { platform(it) }
configurations.all { configuration ->
restrictions.each { module, version ->
constraints.add(configuration.name, module).version { require version }
}
}
}
//skip Test tasks
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.name.contains("test"))
{
task.enabled = false
}
}
}
}
allprojects {
apply plugin: 'com.github.ethankhall.semantic-versioning'
group = 'com.github.ben-manes.caffeine'
version.with {
major = 3 // incompatible API changes
minor = 1 // backwards-compatible additions
patch = 2 // backwards-compatible bug fixes
releaseBuild = rootProject.hasProperty('release')
}
dependencies {
def deprecated = ['apiElements', 'archives', 'compileClasspath', 'default',
'runtimeClasspath', 'runtimeElements', 'testCompileClasspath', 'testRuntimeClasspath']
configurations.all { configuration ->
if (name !in deprecated) {
restrictions.each { module, version ->
constraints.add(configuration.name, module).version { require version }
}
}
}
}
}
subprojects {
apply plugin: 'biz.aQute.bnd.builder'
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply from: "${rootDir}/gradle/dependencies.gradle"
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute module('org.hamcrest:hamcrest-core') using module(testLibraries.hamcrest)
}
}
dependencies {
implementation platforms.collect { platform(it) }
annotationProcessor platforms.collect { platform(it) }
testImplementation libraries.guava
testImplementation testLibraries.junit
testImplementation testLibraries.truth
testImplementation testLibraries.testng
testImplementation testLibraries.mockito
testImplementation testLibraries.hamcrest
testImplementation testLibraries.awaitility
testImplementation testLibraries.osgiCompile
testRuntimeOnly testLibraries.osgiRuntime
testRuntimeOnly testLibraries.junitEngines
}
tasks.register('bundle', aQute.bnd.gradle.Bundle) {
from sourceSets.main.output
sourceSet = sourceSets.main
}
if (project != project(':caffeine')) {
javadoc.options.linksOffline(
"https://static.javadoc.io/${group}/caffeine/${version}/",
'../caffeine/build/docs/javadoc/')
javadoc.dependsOn(project(':caffeine').javadoc)
}
//skip Test tasks
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.name.endsWith("test"))
{
task.enabled = false
}
}
}
}
nexusPublishing {
repositories {
sonatype {
username = project.properties['nexusUsername'] ?: System.env.NEXUS_USERNAME
password = project.properties['nexusPassword'] ?: System.env.NEXUS_PASSWORD
}
}
}
def isNonStable = { String version ->
def stableKeyword = ['RELEASE', 'FINAL', 'GA', 'JRE'].any { version.toUpperCase().contains(it) }
def unstableKeyword = ['PREVIEW'].any { version.toUpperCase().contains(it) }
def regex = /^[0-9,.v-]+(-r)?$/
return (!stableKeyword || unstableKeyword) && !(version ==~ regex)
}
tasks.named('dependencyUpdates').configure {
resolutionStrategy {
componentSelection {
all {
def unstable = ['javax.json.bind', 'org.jetbrains.kotlin']
if (isNonStable(it.candidate.version) && it.candidate.group in unstable) {
reject('release candidate')
}
}
force libraries.coherence
}
}
}
dependencyCheck {
formats = ['html', 'sarif']
}
dependencyCheckAggregate.dependsOn(subprojects*.tasks.jar)
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.errorprone.nullaway {
severity = CheckSeverity.OFF
}
}
tasks.withType(Javadoc) {
options.encoding = "UTF-8"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。