Questions tagged [multi-project]

319 questions
3
votes
1 answer

Use deployed artifacts instead of local project in sbt multi project build

I have an sbt multi-project build lazy val a = project lazy val b = project.dependsOn(a) I continuously work on a and b. Sometimes I want to release a new version of b without releasing a new version of a. Of course this requires that b is still…
cvogt
  • 11,260
  • 30
  • 46
3
votes
6 answers

C# Solution - How many projects?

I googled this a little but couldn't find a good result. Right now I'm building a web site and I'm trying to make it as correct as possible from a design point of view from the beginning. The problem I'm now facing is that when deciding to start…
Oskar Kjellin
  • 21,280
  • 10
  • 54
  • 93
3
votes
0 answers

gradle multiproject: avoid publishing modules when no source code changes detected

I have a multiproject gradle build with the following subprojects: sample-api sample-common that depends on sample-api sample-server that depends on sample-api and sample-common. I would like to avoid building/publishing sample-api.jar,…
pavel
  • 377
  • 2
  • 11
3
votes
2 answers

How to include projects in multiproject build from master directory in Gradle?

Lets have this structure I am in subproject1 how to write my settings.gradle file to include subproject1 and subproject2 as subprojects of the root Project. My settings.gradle file is in master directory? I tried: include 'root:subproject1',…
Xelian
  • 16,680
  • 25
  • 99
  • 152
3
votes
1 answer

Gradle intermediate dir of multiproject not subproject

In RootProject, I have the build.gralde and settings.gradle. common,subProj1 and subProj2 are subprojects in settings.gradle intermediateDir IS NOT a subproject! It is used only for grouping the subProj1, subProj2 since they are related. Everytime…
dalvarezmartinez1
  • 1,385
  • 1
  • 17
  • 26
3
votes
2 answers

sbt gives "configuration not public" for depending on test in subproject

I have an sbt multi-project build, which works fine locally. It uses an external ivy settings file, and on my machine I have the sbt inter-project resolver added to my ivy settings file. However, when I build on Jenkins, I'd like to build each…
Robin Green
  • 32,079
  • 16
  • 104
  • 187
3
votes
2 answers

Acceleo maven generation multi artifact/project

I am trying to construct a maven acceleo generator. The generator consists of multiple acceleo projects (artifacts in maven), with inter-dependencies. I am running into a problem with the dependencies between emtl files. At runtime, I get errors…
user2228895
  • 167
  • 7
3
votes
3 answers

sbt using different Scala versions in a multi project build

I have a multi project which uses two versions of Scala. The Build.scala looks like this: import sbt._ import Keys._ object Build extends sbt.Build { lazy val root: Project = Project( id = "scalacolliderugens", base = file("."), …
0__
  • 66,707
  • 21
  • 171
  • 266
3
votes
3 answers

Gradle multi-project naming: How can I set a property (e.g. baseName) for all subprojects?

I started using Gradle for multi-projects. However, the Gradle manual does not give many hints for the best practice regarding the naming of subprojects. I have the multiproject with the name 'datalogger' that consists of two subprojects 'core' and…
Martin L.
  • 680
  • 7
  • 14
3
votes
0 answers

sbt multi-project war packaging

I've been trying to find the way to package a web application composed by multiple projects into a single war. The only usefull plugin I've found for sbt is xsbt-web-plugin. I'm trying to use the War plugin inside that github hosted project, but…
3
votes
5 answers

Better to reference a DLL or have multi-project solutions?

I'm still learning .NET (specifically C#), and I'm curious as the advantages of creating and referencing a dll versus having a multi-project solution? I have the opportunity to do either one, but I'm not sure which would be better. The projects…
PiousVenom
  • 6,888
  • 11
  • 47
  • 86
2
votes
5 answers

Share entities between multi-projects

I have 3 Java projects with the same entities. I want to share entities between these projects because entities can evolve during the development phase. We are thinking about building a jar with entities and sharing it using Maven (with a…
Falydoor
  • 462
  • 6
  • 19
2
votes
1 answer

.\gradlew run -t -> all subprojects, watch all changes and rebuild does not work

currently I'm working on a java project which is built by gradle. The project consists of an web-api micronaut subproject and some library subprojects. See output .\gradlew -q projects Root project 'mbtn_be' +--- Project ':app' +--- Project…
2
votes
1 answer

Gradle build: how to set up a multilevel project (3+ levels)?

I am having troubles with seting up 3 level gradle multi-project: Level_1_Proj │ ├── Level_2_Proj_A │ │ │ ├── Level_3_Proj_C │ └── Level_3_Proj_D │ └── Level_2_Proj_B │ ├── Level_3_Proj_E └── Level_3_Proj_F I would like to be…
2
votes
1 answer

TypeScript absolute import from other project for normal TS files and global scope declarations

I am evaluating a migration to TypeScript for a large code base in an JavaEE environment. There are multiple projects with deep directory structures and JavaScript code that uses global variables etc. across the projects. TypeScript has…
mihca
  • 997
  • 1
  • 10
  • 29