@ -25,6 +25,9 @@ compileJava {
ext . targetCompatibility = project ( ":spring-core" ) . compileJava . targetCompatibility
ext . targetCompatibility = project ( ":spring-core" ) . compileJava . targetCompatibility
doLast {
doLast {
// Assemble runtime classpath from folders and JARs that actually exist
def runtimeClasspath = project . files ( sourceSets . main . runtimeClasspath . files . findAll ( { it . exists ( ) } ) )
ant . taskdef ( resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties" ,
ant . taskdef ( resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties" ,
classpath: configurations . ajc . asPath )
classpath: configurations . ajc . asPath )
@ -34,7 +37,7 @@ compileJava {
aspectPath: configurations . aspects . asPath ,
aspectPath: configurations . aspects . asPath ,
inpath: configurations . ajInpath . asPath ,
inpath: configurations . ajInpath . asPath ,
sourceRootCopyFilter: "**/*.java,**/*.aj" ,
sourceRootCopyFilter: "**/*.java,**/*.aj" ,
classpath: ( sourceSets . main . runtimeClasspath + configurations . rt ) . asPath ) {
classpath: ( runtimeClasspath + configurations . rt ) . asPath ) {
sourceroots {
sourceroots {
sourceSets . main . java . srcDirs . each {
sourceSets . main . java . srcDirs . each {
pathelement ( location: it . absolutePath )
pathelement ( location: it . absolutePath )
@ -56,9 +59,11 @@ compileTestJava {
ext . sourceCompatibility = project ( ":spring-core" ) . compileTestJava . sourceCompatibility
ext . sourceCompatibility = project ( ":spring-core" ) . compileTestJava . sourceCompatibility
ext . targetCompatibility = project ( ":spring-core" ) . compileTestJava . targetCompatibility
ext . targetCompatibility = project ( ":spring-core" ) . compileTestJava . targetCompatibility
ext . pathSeparator = System . getProperty ( 'path.separator' )
doLast {
doLast {
// Assemble runtime classpath from folders and JARs that actually exist
def runtimeClasspath = project . files ( sourceSets . test . runtimeClasspath . files . findAll ( { it . exists ( ) } ) )
ant . taskdef ( resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties" ,
ant . taskdef ( resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties" ,
classpath: configurations . ajc . asPath )
classpath: configurations . ajc . asPath )
@ -67,7 +72,7 @@ compileTestJava {
destDir: outputDir . absolutePath ,
destDir: outputDir . absolutePath ,
aspectPath: jar . archivePath ,
aspectPath: jar . archivePath ,
inpath: configurations . ajInpath . asPath ,
inpath: configurations . ajInpath . asPath ,
classpath: sourceSets . test . runtimeClasspath . asPath + pathSeparator + jar . archivePath + pathSeparator + configurations . rt . asPath ) {
classpath: ( runtimeClasspath + project . files ( jar . archivePath ) + configurations . rt ) . asPath ) {
sourceroots {
sourceroots {
sourceSets . test . java . srcDirs . each {
sourceSets . test . java . srcDirs . each {
pathelement ( location: it . absolutePath )
pathelement ( location: it . absolutePath )