Giter Site home page Giter Site logo

Comments (4)

sedovalx avatar sedovalx commented on May 13, 2024

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.

sedovalx avatar sedovalx commented on May 13, 2024

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.

qhr-nwourms avatar qhr-nwourms commented on May 13, 2024

@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.

sedovalx avatar sedovalx commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.