|
@@ -2,11 +2,12 @@ import groovy.text.SimpleTemplateEngine
|
|
|
|
|
|
buildscript {
|
|
|
repositories {
|
|
|
- maven { url "http://repo.springsource.org/plugins-release" }
|
|
|
+ maven { url "https://repo.spring.io/plugins-release" }
|
|
|
}
|
|
|
dependencies {
|
|
|
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.5")
|
|
|
classpath("org.springframework.build.gradle:bundlor-plugin:0.1.2")
|
|
|
+ classpath("org.springframework.build.gradle:springio-platform-plugin:0.0.2.RELEASE")
|
|
|
classpath("org.gradle.api.plugins:gradle-tomcat-plugin:0.9.8")
|
|
|
classpath('me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1')
|
|
|
classpath('org.asciidoctor:asciidoctor-gradle-plugin:0.7.0')
|
|
@@ -100,6 +101,7 @@ configure(javaProjects) {
|
|
|
configure(coreModuleProjects) {
|
|
|
apply plugin: 'bundlor'
|
|
|
apply plugin: 'emma'
|
|
|
+ apply plugin: 'springio-platform'
|
|
|
|
|
|
bundlor.doFirst {
|
|
|
def templateText = file("template.mf").text
|
|
@@ -107,25 +109,7 @@ configure(coreModuleProjects) {
|
|
|
}
|
|
|
configurations {
|
|
|
jacoco //Configuration Group used by Sonar to provide Code Coverage using JaCoCo
|
|
|
- spring4TestRuntime.extendsFrom testRuntime
|
|
|
}
|
|
|
- configurations.spring4TestRuntime {
|
|
|
- resolutionStrategy.eachDependency { DependencyResolveDetails details ->
|
|
|
- if (details.requested.group == 'org.springframework') {
|
|
|
- details.useVersion spring4Version
|
|
|
- }
|
|
|
- if (details.requested.name == 'ehcache') {
|
|
|
- details.useVersion '2.6.5'
|
|
|
- }
|
|
|
- if (details.requested.name == 'ehcache-terracotta') {
|
|
|
- details.useVersion '2.1.1'
|
|
|
- }
|
|
|
- if (details.requested.group == 'org.springframework.ldap') {
|
|
|
- details.useVersion springLdap2Version
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
dependencies {
|
|
|
jacoco "org.jacoco:org.jacoco.agent:0.6.2.201302030002:runtime"
|
|
|
}
|
|
@@ -135,14 +119,6 @@ configure(coreModuleProjects) {
|
|
|
integrationTest {
|
|
|
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=${project.group}.*"
|
|
|
}
|
|
|
- task spring4Test(type: Test) {
|
|
|
- jvmArgs = ['-ea', '-Xmx500m', '-XX:MaxPermSize=128M']
|
|
|
- exclude "**/EhCacheBasedAclCacheTests.class", "**/Issue55Tests.class"
|
|
|
- classpath = sourceSets.test.output + sourceSets.main.output + configurations.spring4TestRuntime
|
|
|
- testResultsDir = file("$buildDir/spring4-test-results/")
|
|
|
- testReportDir = file("$buildDir/reports/spring4-tests/")
|
|
|
- }
|
|
|
- check.dependsOn spring4Test
|
|
|
}
|
|
|
|
|
|
configure (aspectjProjects) {
|