Why gradle-aspectj doesn't pick up IntegrationTest sourceSet

旧街凉风 提交于 2019-12-25 04:48:17

问题


Like many others I am trying to convert a Maven project to gradle and am having problems with aspects. I have tried using gradle-aspectj - https://github.com/eveoh/gradle-aspectj - and right out of the box it weaves main and test sources. But I am trying to run IntegrationTests as a separate SourceSet.

The code for gradle-aspectj at https://github.com/eveoh/gradle-aspectj/blob/master/src/main/groovy/aspectj/AspectJPlugin.groovy loops over the project.sourceSets so why doesn't it pick up the one for integration tests?

I have seen that most users use antTasks-iajc to define other SourceSets. This isn't trivial (see Integration test + aspectJ + gradle). The gradle-aspectj plugin is fairly painless to setup and configure - couldn't the addition of other sourceSets be incorporated into gradle-aspectj?

来源:https://stackoverflow.com/questions/38680678/why-gradle-aspectj-doesnt-pick-up-integrationtest-sourceset

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!