I have multi-project build. One jar created based on what I have in all subprojects:
jar {
archiveName = 'mineAll.jar'
from getRootProject().subprojects.sourceSets.main.output
}
Now I need to add another subproject that uses Ant (rest of them are using Java plugin) and I need to exclude that project from mineAll.jar creation.
For now I’m getting error: * What went wrong: A problem occurred evaluating root project ‘proj1’. > Could not find property ‘sourceSets’ on project ‘:antProj’.