Comments (4)
Hi @kiran4298!
Please take a look at https://docs.gradle.org/current/userguide/custom_plugins.html#sec:getting_input_from_the_build article for how to make a plugin configurable. You may add a plugin extension with a property to specify all source set names that you want.
Feel free to contact me if you need a help on it.
from gradle-aspectj-binary.
Please see the updated README and https://github.com/sedovalx/gradle-aspectj-binary/releases/tag/1.0.41. I've added support for multiple source sets to the plugin but... honestly, I haven't tested it. So, if you still feel the need, I would appreciate getting the feedback.
from gradle-aspectj-binary.
@sedovalx I tried to get multiple source sets working for a project that has aspects defined in the main source set and would weave aspects in great for the first source set as it corresponded to the outputDir. Your weaving methodology has resolved issues I've had with incremental builds for the main source set as opposed to using https://docs.freefair.io/gradle-plugins/4.1.6/reference/#_aspectj_plugins
Challenge that I am facing is that I am need to be able to weave those main source set aspects into a test source set but does not seem to be occurring.
E.g.
Project
+-- src
| +-- main
| | +-- java
| | | +-- someAspect
| +-- test
| | +-- java
| | | +-- someTestClass
My guess is that given that there is only one outputDir which had been set to the build directory of main/java is why this is not getting weaved for my tests. Would almost be nice to have a mapping for multiple source sets so that it wouldn't only just be main/test but also other kinds of tests (e.g. integration and others). Alternatively could be separate tasks for tests.
from gradle-aspectj-binary.
I'm sorry @qhr-nwourms but I don't have much time for looking into this now. Feel free to fork the repo or create a merge request with changes that you need.
from gradle-aspectj-binary.
Related Issues (8)
- JCabi wearing problem HOT 1
- does the post-time compile solve problem of conflict with lombok problem? HOT 10
- Gradle 5 Support HOT 6
- Does it work with Android? HOT 6
- Unable to add plugin using Kotlin DSL HOT 11
- Adding custom Ajc task parameters? HOT 4
- GradleScriptException: register-Method not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-aspectj-binary.