1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Use the 'io.freefair.aspectj' gradle plugin

This commit is contained in:
Lars Grefer
2019-08-05 02:21:03 +02:00
committed by Rob Winch
parent 0410bac559
commit a51318eb95
8 changed files with 17 additions and 151 deletions
+11 -1
View File
@@ -1,11 +1,21 @@
apply plugin: 'io.spring.convention.spring-module'
apply plugin: 'aspectj'
apply plugin: 'io.freefair.aspectj'
dependencies {
compile "org.aspectj:aspectjrt"
compile project(':spring-security-core')
compile 'org.springframework:spring-beans'
compile 'org.springframework:spring-context'
compile 'org.springframework:spring-core'
testCompile 'org.springframework:spring-aop'
testAspect sourceSets.main.output
}
sourceSets.main.aspectj.srcDir "src/main/java"
sourceSets.main.java.srcDirs = files()
sourceSets.test.aspectj.srcDir "src/test/java"
sourceSets.test.java.srcDirs = files()
compileAspectj.ajcOptions.outxmlfile = "META-INF/aop.xml"
@@ -1,18 +0,0 @@
<?xml version="1.0"?>
<!--
AspectJ load-time weaving config file to install common Spring
aspects.
-->
<aspectj>
<!--
<weaver options="-showWeaveInfo"/>
-->
<aspects>
<aspect
name="org.springframework.security.access.intercept.aspectj.aspect.AnnotationSecurityAspect" />
</aspects>
</aspectj>