-
Notifications
You must be signed in to change notification settings - Fork 151
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
How to use Gradle for plugin #210
Comments
I'm curious about this as well. There is an older issue that also asks about this with some developer follow-up, but no real resolution. |
@yegor256 please dispatch this issue |
@ashishsoni and @markcerqueira you can set it to weave using iajc. |
Any update on this one please. I am trying to use jcabi in my projects but couldn't get through. Suspecting because of the ajc weaver. Can you setup some sample projects using gradle as build tool and working with jcabi |
@bvipparla I'll do it and place news here asap |
@maurcarvalho - do you have any updates? |
Hello guys, I didn't have the chance to look on it yet 👎 |
Any updates guys? |
@Arxa looks like no-one is working on it. Feel free to jump for if you wish. |
@maurcarvalho will you help me out in setting gradle project example? I can jump to get it working |
I've created a simple Gradle version of the plugin https://github.com/sedovalx/gradle-aspectj-binary. Feel free to use it as a sample, fork it or issue a pull request. I had a plan to use it in one of my projects but the command decided not to use aspects, at least for now. Probably it will be helpful for someone anyway. |
@sedovalx thanks for your help on it! You can document it under Examples > Gradle. If you think that it's a good idea, you can fork and PR the example page at |
https://github.com/bilalsha/gradle-jcabi-example A sample project to use jcabi-aspect with gradle. |
https://github.com/eveoh/gradle-aspectj is definitely a more mature project. But it works with java sources only. In my case it was a downside. But if it is not an issue you'd better stick to the |
Anyway here is the setup for the jcabi-aspects with https://github.com/sedovalx/gradle-aspectj-binary.
That's basically it. Should work with annotated classes and custom aspects written in Java and Kotlin. Not sure about Groovy, Closure and Scala. |
@sedovalx Hi, thanks for your contribution, and I use your gradle-aspectj-binary to config jcabi-aspects, it works, but when I build, I got some warn message as below:
I have put my test project in https://github.com/shiziwen/test_retry. How can I remove the warn message? I found I could writeToLog = true to move the log into another file, but I think I didn't find the solution. Thank you. |
@ashishsoni the puzzle #391 is still not solved. |
How do i use with gradle for Loggable annotation
The text was updated successfully, but these errors were encountered: