Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Waibel2014-11-15 11:38:34 -0500
committerFlorian Waibel2014-11-15 11:38:34 -0500
commit802d6c4d096d221cbdef30fdcfa4aa482583c917 (patch)
tree0774283eaa9e1d57a675574773488dd602aa2754
parenteace98c16c41150648dc602f162a29537979ea54 (diff)
downloadorg.eclipse.virgo.medic-802d6c4d096d221cbdef30fdcfa4aa482583c917.tar.gz
org.eclipse.virgo.medic-802d6c4d096d221cbdef30fdcfa4aa482583c917.tar.xz
org.eclipse.virgo.medic-802d6c4d096d221cbdef30fdcfa4aa482583c917.zip
Compiles successfully with Gradle
-rw-r--r--org.eclipse.virgo.medic/build.gradle57
1 files changed, 0 insertions, 57 deletions
diff --git a/org.eclipse.virgo.medic/build.gradle b/org.eclipse.virgo.medic/build.gradle
index 0558846..32e59e1 100644
--- a/org.eclipse.virgo.medic/build.gradle
+++ b/org.eclipse.virgo.medic/build.gradle
@@ -10,60 +10,3 @@ jar {
attributes( 'Built-By': "Gradle ${gradle.gradleVersion}" )
}
}
-
-configurations {
- tools
- aspects
- ajInpath
-}
-
-def aspectjVersion = "1.8.1"
-
-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 'org.ow2.asm:asm:5.0.3'
- compile 'org.ow2.asm:asm-tree:5.0.3'
-}
-
-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
- )
-// TODO - translate the "old" command
-// <iajc inPath="${test.output.dir}" aspectPathRef="test.aspect.path" classpathRef="test.compile.classpath"
-// destDir="${test.output.dir}" source="${source.version}" checkRuntimeVersion="false" X="${aspectj.x}"/>
- ant.iajc(
- source:sourceCompatibility,
- target:targetCompatibility,
- destDir: destDir.absolutePath,
- maxmem:"512m",
- fork:"true",
- verbose: "true",
- showWeaveInfo: "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

Back to the top