Remove Gradle Scripts
Issue gh-613
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
apply plugin: "com.jfrog.artifactory"
|
||||
|
||||
def isSnapshot = version?.endsWith("-SNAPSHOT")
|
||||
|
||||
artifactory {
|
||||
contextUrl = 'https://repo.spring.io'
|
||||
publish {
|
||||
repository {
|
||||
repoKey = isSnapshot ? 'libs-snapshot-local' : 'libs-release-local'
|
||||
if(project.hasProperty('artifactoryUsername')) {
|
||||
username = artifactoryUsername
|
||||
password = artifactoryPassword
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
artifactoryPublish {
|
||||
publishConfigs 'archives'
|
||||
publishIvy false
|
||||
properties = [
|
||||
'bintray.package': "${project.group}:spring-security",
|
||||
'bintray.version': "${project.version}"
|
||||
]
|
||||
}
|
||||
|
||||
artifactory {
|
||||
publish {
|
||||
defaults {
|
||||
publishConfigs('archives')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
def isSnapshot = version?.endsWith("-SNAPSHOT")
|
||||
|
||||
task deployArtifacts {
|
||||
group = 'Deploy tasks'
|
||||
description = "Deploys the artifacts to either Artifactory or Maven Central"
|
||||
if(isSnapshot) {
|
||||
dependsOn "artifactoryPublish"
|
||||
} else {
|
||||
dependsOn "uploadArchives"
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
apply plugin: 'org.hidetake.ssh'
|
||||
|
||||
project.ssh.settings {
|
||||
knownHosts = allowAnyHosts
|
||||
}
|
||||
|
||||
project.remotes {
|
||||
docs {
|
||||
role 'docs'
|
||||
host = 'docs-ip.spring.io'
|
||||
user = project.findProperty('deployDocsSshUsername')
|
||||
if(project.hasProperty('deployDocsSshKeyPath')) {
|
||||
identity = project.file(project.findProperty('deployDocsSshKeyPath'))
|
||||
}
|
||||
if(project.hasProperty('deployDocsSshPassphrase')) {
|
||||
passphrase = project.findProperty('deployDocsSshPassphrase')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project.task('deployDocs') {
|
||||
dependsOn 'docsZip'
|
||||
doFirst {
|
||||
project.ssh.run {
|
||||
session(project.remotes.docs) {
|
||||
def now = System.currentTimeMillis()
|
||||
def name = project.rootProject.name
|
||||
def version = project.rootProject.version
|
||||
def tempPath = "/tmp/${name}-${now}-docs".replaceAll(' ', '_')
|
||||
execute "mkdir -p $tempPath"
|
||||
|
||||
project.tasks.docsZip.outputs.each { o ->
|
||||
put from: o.files, into: tempPath
|
||||
}
|
||||
|
||||
execute "unzip $tempPath/*.zip -d $tempPath"
|
||||
|
||||
def extractPath = "/var/www/domains/springsource.org/www/htdocs/autorepo/docs/${name}/${version}/"
|
||||
|
||||
execute "rm -rf $extractPath"
|
||||
execute "mkdir -p $extractPath"
|
||||
execute "mv $tempPath/* $extractPath"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
apply plugin: 'org.hidetake.ssh'
|
||||
|
||||
project.ssh.settings {
|
||||
knownHosts = allowAnyHosts
|
||||
}
|
||||
|
||||
project.remotes {
|
||||
docs {
|
||||
role 'docs'
|
||||
host = 'docs-ip.spring.io'
|
||||
user = project.findProperty('deployDocsSshUsername')
|
||||
if(project.hasProperty('deployDocsSshKeyPath')) {
|
||||
identity = project.file(project.findProperty('deployDocsSshKeyPath'))
|
||||
}
|
||||
if(project.hasProperty('deployDocsSshPassphrase')) {
|
||||
passphrase = project.findProperty('deployDocsSshPassphrase')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project.task('deploySchema') {
|
||||
dependsOn 'schemaZip'
|
||||
doFirst {
|
||||
project.ssh.run {
|
||||
session(project.remotes.docs) {
|
||||
def now = System.currentTimeMillis()
|
||||
def name = project.rootProject.name
|
||||
def version = project.rootProject.version
|
||||
def tempPath = "/tmp/${name}-${now}-schema".replaceAll(' ', '_')
|
||||
|
||||
execute "mkdir -p $tempPath"
|
||||
|
||||
project.tasks.schemaZip.outputs.each { o ->
|
||||
println "Putting $o.files"
|
||||
put from: o.files, into: tempPath
|
||||
}
|
||||
|
||||
execute "unzip $tempPath/*.zip -d $tempPath"
|
||||
|
||||
def extractPath = "/var/www/domains/springsource.org/www/htdocs/autorepo/schema/${name}/${version}/"
|
||||
|
||||
execute "rm -rf $extractPath"
|
||||
execute "mkdir -p $extractPath"
|
||||
execute "rm -f $tempPath*.zip"
|
||||
execute "rm -rf $extractPath*"
|
||||
execute "mv $tempPath/* $extractPath"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
def isSnapshot = version?.endsWith("-SNAPSHOT")
|
||||
def isRelease = !isSnapshot
|
||||
|
||||
task finalizeDeployArtifacts {
|
||||
}
|
||||
|
||||
if (isRelease && project.hasProperty("ossrhUsername")) {
|
||||
project.ext.nexusUsername = project.ossrhUsername
|
||||
project.ext.nexusPassword = project.ossrhPassword
|
||||
project.getPluginManager().apply("io.codearte.nexus-staging")
|
||||
finalizeDeployArtifacts.dependsOn project.tasks.closeAndReleaseRepository
|
||||
project.nexusStaging.packageGroup = 'org.springframework'
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
apply from: JAVA_SCRIPT
|
||||
apply from: RELEASE_CHECKS_SCRIPT
|
||||
apply from: SPRING_SNAPSHOT_TEST_SCRIPT
|
||||
apply plugin: 'spring-io'
|
||||
apply from: "${GRADLE_SCRIPT_DIR}/artifactory.gradle"
|
||||
apply from: "${GRADLE_SCRIPT_DIR}/ossrh.gradle"
|
||||
apply from: "${GRADLE_SCRIPT_DIR}/deploy-artifacts.gradle"
|
||||
|
||||
ext.springIoVersion = project.hasProperty('platformVersion') ? platformVersion : 'Athens-RELEASE'
|
||||
|
||||
configurations {
|
||||
jacoco //Configuration Group used by Sonar to provide Code Coverage using JaCoCo
|
||||
}
|
||||
|
||||
dependencies {
|
||||
jacoco group: "org.jacoco", name: "org.jacoco.agent", version: "0.7.1.201405082137", classifier: "runtime"
|
||||
dependencyManagement {
|
||||
springIoTestRuntime {
|
||||
imports {
|
||||
mavenBom("io.spring.platform:platform-bom}") {
|
||||
bomProperties([
|
||||
'mockito.version': '1.10.19'
|
||||
])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
test {
|
||||
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=org.springframework.*"
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest.attributes["Created-By"] =
|
||||
"${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
|
||||
manifest.attributes["Implementation-Title"] = project.name
|
||||
manifest.attributes["Implementation-Version"] = project.version
|
||||
|
||||
from("${rootProject.projectDir}") {
|
||||
include "license.txt"
|
||||
include "notice.txt"
|
||||
into "META-INF"
|
||||
expand(copyright: new Date().format("yyyy"), version: project.version)
|
||||
}
|
||||
}
|
||||
|
||||
javadoc {
|
||||
description = "Generates project-level javadoc for use in -javadoc jar"
|
||||
|
||||
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
|
||||
options.author = true
|
||||
options.header = project.name
|
||||
options.links(project.ext.javadocLinks)
|
||||
|
||||
// suppress warnings due to cross-module @see and @link references;
|
||||
// note that global 'api' task does display all warnings.
|
||||
logging.captureStandardError LogLevel.INFO
|
||||
logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn:classes) {
|
||||
description = "Generates the -sources.jar"
|
||||
|
||||
classifier = "sources"
|
||||
from sourceSets.main.allJava.srcDirs
|
||||
include "**/*.java", "**/*.aj"
|
||||
}
|
||||
assemble.dependsOn sourcesJar
|
||||
|
||||
task javadocJar(type: Jar) {
|
||||
description = "Generates the -javadoc.jar"
|
||||
|
||||
classifier = "javadoc"
|
||||
from javadoc
|
||||
}
|
||||
assemble.dependsOn javadocJar
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'org.springframework.optional'
|
||||
|
||||
sourceCompatibility = '17'
|
||||
targetCompatibility = '17'
|
||||
|
||||
ext.apacheDsVersion = '1.5.5'
|
||||
ext.springVersion = '6.0.0-SNAPSHOT'
|
||||
ext.springDataVersion = '3.0.0-SNAPSHOT'
|
||||
ext.springBatchVersion = '2.0.4.RELEASE'
|
||||
ext.junitVersion = '4.12'
|
||||
ext.commonsIoVersion = '2.4'
|
||||
ext.commonsPoolVersion = '1.6'
|
||||
ext.commonsLangVersion = '2.6'
|
||||
ext.commonsLoggingVersion = '1.2'
|
||||
ext.gsbaseVersion = '2.0.1'
|
||||
ext.log4jVersion = '1.2.17'
|
||||
ext.mockitoVersion = '1.10.19'
|
||||
ext.queryDslVersion = '4.0.9'
|
||||
ext.slf4jVersion = '1.7.21'
|
||||
ext.powerMockVersion = '1.6.5'
|
||||
ext.commonsPool2Version = '2.4.2'
|
||||
ext.assertjVersion= '2.3.0'
|
||||
ext.hibernateVersion = '5.2.5.Final'
|
||||
ext.springSecurityVersion='6.0.0-SNAPSHOT'
|
||||
ext.unboundidVersion = '3.1.1'
|
||||
|
||||
ext.powerMockDependencies = [
|
||||
"org.powermock:powermock-core",
|
||||
"org.powermock:powermock-api-support",
|
||||
"org.powermock:powermock-module-junit4-common",
|
||||
"org.powermock:powermock-module-junit4",
|
||||
dependencies.create("org.powermock:powermock-api-mockito") {
|
||||
exclude group: 'org.mockito', module: 'mockito-all'
|
||||
},
|
||||
"org.powermock:powermock-reflect"
|
||||
]
|
||||
|
||||
ext.apachedsDependencies = [
|
||||
"org.apache.directory.server:apacheds-core",
|
||||
"org.apache.directory.server:apacheds-core-entry",
|
||||
"org.apache.directory.server:apacheds-protocol-shared",
|
||||
"org.apache.directory.server:apacheds-protocol-ldap",
|
||||
"org.apache.directory.server:apacheds-server-jndi",
|
||||
'org.apache.directory.shared:shared-ldap:0.9.15'
|
||||
]
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'https://repo.spring.io/libs-snapshot' }
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
apply plugin: ''
|
||||
@@ -1,24 +0,0 @@
|
||||
task checkDependencies {
|
||||
doLast {
|
||||
verifyNoDependenciesMatchingVersion(".*-SNAPSHOT")
|
||||
if (releaseBuild) {
|
||||
verifyNoDependenciesMatchingVersion(".*M.*")
|
||||
verifyNoDependenciesMatchingVersion(".*RC.*")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!snapshotBuild) {
|
||||
tasks.findByPath('check')?.dependsOn checkDependencies
|
||||
}
|
||||
|
||||
def verifyNoDependenciesMatchingVersion(def pattern) {
|
||||
def dependencies = configurations.all*.allDependencies*.findAll { d ->
|
||||
def ignored = 'io.spring.platform:platform-versions'
|
||||
def groupAndName = "$d.group:$d.name".toString()
|
||||
ignored != groupAndName && d.version?.matches(pattern)
|
||||
}.flatten().toSet().join("\n ")
|
||||
if(dependencies) {
|
||||
throw new GradleException("${project.name} cannot have dependencies with a version that matches $pattern when its version is ${project.version}. Got\n $dependencies")
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
configurations {
|
||||
springSnapshotTestRuntime.extendsFrom testRuntime
|
||||
}
|
||||
|
||||
|
||||
configurations.springSnapshotTestRuntime {
|
||||
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
|
||||
if (details.requested.group == 'org.springframework') {
|
||||
details.useVersion project.hasProperty('springSnapshotVersion') ? springSnapshotVersion : 'latest.integration'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task springSnapshotTest(type: Test) {
|
||||
jvmArgs = ['-ea', '-Xmx500m', '-XX:MaxPermSize=128M']
|
||||
classpath = sourceSets.test.output + sourceSets.main.output + configurations.springSnapshotTestRuntime
|
||||
reports {
|
||||
html.destination = project.file("$buildDir/spring-snapshot-test-results/")
|
||||
junitXml.destination = project.file("$buildDir/reports/spring-snapshot-tests/")
|
||||
}
|
||||
doFirst {
|
||||
project.springSnapshotTest.excludes = project.test.excludes
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user