Skip to content

Use the 'io.freefair.aspectj' gradle plugin #7183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion aspects/spring-security-aspects.gradle
Original file line number Diff line number Diff line change
@@ -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"
18 changes: 0 additions & 18 deletions aspects/src/main/resources/META-INF/aop.xml

This file was deleted.

1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ buildscript {
classpath 'io.spring.gradle:spring-build-conventions:0.0.23.RELEASE'
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
classpath 'io.spring.nohttp:nohttp-gradle:0.0.2.RELEASE'
classpath "io.freefair.gradle:aspectj-plugin:3.8.4"
}
repositories {
maven { url 'https://repo.spring.io/plugins-snapshot' }
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply plugin: 'groovy'
apply plugin: 'java'

repositories {
mavenCentral()
Expand Down
126 changes: 0 additions & 126 deletions buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'io.spring.convention.spring-sample'
apply plugin: 'aspectj'
apply plugin: 'io.freefair.aspectj.post-compile-weaving'

repositories {
mavenCentral()
Expand All @@ -9,7 +9,7 @@ dependencies {
compile project(':spring-security-config')
compile project(':spring-security-core')

aspectpath project(':spring-security-aspects')
aspect project(':spring-security-aspects')

runtime project(':spring-security-aspects')
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apply plugin: 'io.spring.convention.spring-sample-war'
apply plugin: 'aspectj'
apply plugin: 'io.freefair.aspectj.post-compile-weaving'

dependencies {
compile project(':spring-security-core')

aspectpath project(':spring-security-aspects')
aspect project(':spring-security-aspects')

runtime project(':spring-security-aspects')
runtime project(':spring-security-config')
Expand Down