Gradle + Buildship - Switch dependency between JAR and projects

后端 未结 2 1000
春和景丽
春和景丽 2020-12-30 07:31

I\'m having some trouble configuring Buildship for Eclipse the way I want. I currently have > 50 projects always open in Eclipse, but I want to move to having only the proje

2条回答
  •  星月不相逢
    2020-12-30 08:15

    1. There's a new composite build support feature added in Gradle 3.1. This feature is a game changer and makes it simple to work on more than one project at once.

    2. You can use dependency substitution rules to swap out repository dependencies with local project dependencies.

    3. If each project is within it's own separate git/subversion repository you can use prezi pride to manage the 'pride' of projects. You could import the (dynamically generated) multi module build into buildship.

    4. If you wanted to use the eclipse plugin instead of buildship you use the whenMerged or withXml hooks to tweak the generated .classpath files to point to the projects within your workspace (note eclipse will now build differently to gradle command line).

提交回复
热议问题