Questions tagged [multi-project]
319 questions
3
votes
3 answers
How to correctly setup a C language project in Eclipse
I'm an experienced Java developer, and I'm very familiar with Eclipse. Lately I've been trying to migrate a Texas Instrumental(BLE), IAR C language project, into Eclipse, without using IAR official Eclipse plugin, I just want to use Eclipse as my…

TacB0sS
- 10,106
- 12
- 75
- 118
3
votes
0 answers
Create gradle sub project without sub sub project "lib" or "app"
Since some Gradle version, it doesn't create "flat projects" any more. Instead you always get an empty "wrapper" project with the actual project name ("myproject") which includes a sub project always named lib or app, depending on whether you choose…

MrSnrub
- 1,123
- 1
- 11
- 19
3
votes
2 answers
Gradle task don't run in all subprojects
I have the following multi-module project structure.
Root project 'reports-be'
+--- Project ':auth'
+--- Project ':builder'
| +--- Project ':builder:base'
| \--- Project ':builder:reporting'
\--- Project ':common'
When I run build task for…

Vladimir
- 525
- 5
- 15
3
votes
0 answers
How to overwrite a project dependency's resource files at build time with gradle
I'm working in a multi-module Gradle application where Project B will depend on Project A, and are imported as dependencies as such:
compile project(":modules:lib-module")
Project A, let's call lib-module, in this case contains XML files for…

JNYRanger
- 6,829
- 12
- 53
- 81
3
votes
1 answer
Gradle disable automatic subproject execution for specific task
I have a multi-project Gradle build and I customised the "run" task to do something a bit different in the root project.
However, I don't want it to call the "run" task of each sub-project after completion, as it does now. But this behaviour should…

xeruf
- 2,602
- 1
- 25
- 48
3
votes
1 answer
Add multi project itself as a dependency in another project
After a lot of searching, it was the last option to raise it here! In eclipse, I am designing such project structure using Gradle, as shown below...
Algorithms //Parent Project
-SubModuleCore //Child Project for common…

User
- 4,023
- 4
- 37
- 63
3
votes
0 answers
Do not publish artifact to Nexus if project has not changed
I have two projects as part of my multi- project build, ProjectA and ProjectB.
ProjectA has a compile dependency on ProjectB. I also have automatic build number increments, whereby each project contains a versions.json file containing the latest…

PCL
- 421
- 2
- 7
- 15
3
votes
2 answers
Gradle: manage dependency/plugin versions in multi-project builds
I was working with Maven before Gradle and Maven has such things like dependencyManagement and pluginManagement what allows to keep all versions "DRY" in one place with help of "properties".
Gradle supports project properties, so I can declare…

Alex L.
- 53
- 4
3
votes
2 answers
How should be project structure using microservices with gradle or maven?
I want to be sure what is the best practice for project structure while using microservice architecture.
All microservices can be created as a new maven/gradle project or as a subproject/module.
I think dependency inheritance, project repository…

erdem
- 103
- 1
- 11
3
votes
2 answers
How should the gradle build scripts be to modularize this application?
I am trying to apply an example from the book Gradle in Action to learn how to separate a gradle application into subprojects. I did the example in the book and everything worked out fine.
I decided to apply the same concepts to a sample application…

Marcelo Ruiz
- 199
- 9
3
votes
0 answers
SBT: How to define dependencies of subprojects in subprojects' build.sbt files?
The following build.sbt file works, but it defines the dependencies of all subprojects:
name := "myproject"
version := "1.0"
scalaVersion := "2.11.8"
libraryDependencies ++= Seq(
"org.scalafx" %% "scalafx" % "8.0.60-R9"
)
lazy val aLib =…

ideaboxer
- 3,863
- 8
- 43
- 62
3
votes
0 answers
SBT: Override sbt run task in multi project build.sb
I want to override the default behaviour of the run task in order to preprocess the arguments passed to the sbt command and call the run task on a specific subproject with different arguments (depending on custom logic).
That's a sample of build.sbt…

rucka
- 61
- 1
- 9
3
votes
0 answers
Including subproject project test sources through gradle
My structure is like this
Top Level Project (A)
-> src
-> main
-> test
-> Sub project (B)
-> main
-> test
In my dependencies for project A I have compile project(":ProjectB"), which works as expected for the main sources (brings in…

bobby
- 31
- 1
3
votes
0 answers
Dependent intellij modules with different versions of external dependency
I am creating a library, a new feature in Spring 4 allows the user of the library some neat benefits. However, I also want to support spring 3.
I am having some difficulties when setting this up correctly in Intellij using gradle.
I created two…

Knut Saua Mathiesen
- 1,020
- 10
- 19
3
votes
1 answer
gradle creating build directory in subfolder
I have a subfolder api which holds multiple api related subprojects. I have included an api subproject in my settings.gradle as
include "api:invenio"
project(":api:invenio").name = 'metadata-api-invenio'
folder structure looks like…

adeelmahmood
- 2,371
- 8
- 36
- 59