Files
spring-loaded/org.springsource.loaded.testdata/build.gradle
Stefan Eggerstorfer f0a6c4d425 gradle build
- remove checked-in jars (except the ones loaded by tests)
- configure eclipse settings for STS
2013-09-05 21:18:09 +02:00

40 lines
1.2 KiB
Groovy

def aspectjVersion = "1.7.1"
configurations {
aspects
ajInpath
}
dependencies {
tools "org.aspectj:aspectjtools:$aspectjVersion"
compile "org.aspectj:aspectjrt:$aspectjVersion"
compile("cglib:cglib:2.2.2") { exclude group: 'asm' } // cglib 2.2.2 depends on asm 3.3
compile 'asm:asm-all:3.2'
compile files("code.jar")
}
compileJava.deleteAllActions()
task aspectJ(dependsOn: JavaPlugin.PROCESS_RESOURCES_TASK_NAME) {
dependsOn configurations.tools.getTaskDependencyFromProjectDependency(true, "compileJava")
def srcDirs = sourceSets.main.java.srcDirs
srcDirs.each { inputs.dir it }
def destDir = sourceSets.main.output.classesDir
outputs.dir destDir
doLast {
ant.taskdef(resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties", classpath: configurations.tools.asPath)
ant.iajc(source:sourceCompatibility, target:targetCompatibility, destDir: destDir.absolutePath, maxmem:"512m", fork:"true",
aspectPath: configurations.aspects.asPath, inpath:configurations.ajInpath.asPath, sourceRootCopyFilter:"**/.svn/*,**/*.java",classpath:configurations.compile.asPath ){
sourceroots {
srcDirs.each {
if (it.exists()) pathelement location: it.absolutePath
}
}
}
}
}
compileJava.dependsOn aspectJ