Questions tagged [subproject]

Use this tag for questions related to a subproject, i.e. a project within a larger project.

is used in questions related to the configuration of a subproject (i.e. a project within a larger project.) in Maven, Xcode, Gradle, etc. .

159 questions
76
votes
2 answers

Gradle subproject name different than folder name

I have a couple of subprojects that are part of a multi-project build (flat hierarchy). I want to set the name on them to be different than their folder name. However, in include (settings.gradle) it has to have the folder name otherwise it won't…
Greg Hill
  • 2,148
  • 2
  • 23
  • 27
19
votes
2 answers

How to configure a subproject dependency in Maven without deploying jars?

I googled this and it seems that no one has an answer, yet it seems like such an elementary thing that it should be possible. I have the following project structure: parent ---sub-project1 ---sub-project2 sub-project2 needs to have…
MikeHoss
  • 1,477
  • 4
  • 18
  • 35
18
votes
4 answers

Specifying a subproject's Configuration in Xcode

I have an Xcode project (A) referencing another project (B). By default (as far as I understand it) Xcode will implicitly build the configuration for the B dependency that matches the configuration of the A's target (e.g., "Debug"). But what if I…
fbrereto
  • 35,429
  • 19
  • 126
  • 178
14
votes
5 answers

Gradle Could not find method compile() for arguments

i have a hello world full screen android studio 1.5.1 app that i added a gradle/eclipse-mars subproject to. no other files were modified except for adding include ':javalib' to settings.gradle. adding a project lib dependency: project(':app') { …
Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
13
votes
1 answer

Inheriting gradle plugin in subprojects

I want to avoid redundancy and therefore I got one "shared" project that contains looks like this: plugins { id "org.flywaydb.flyway" version "4.2.0" } repositories { mavenCentral() jcenter() } apply plugin: "java" dependencies { …
John Reese
  • 583
  • 2
  • 6
  • 17
11
votes
2 answers

Gradle subproject not included in classpath

We have a set up with 2 project, 1 main and 1 subproject, they are Java projects. They are all under the same directory. Here is how the directory structure looks like : ./dev ./Project_A build.gradle settings.gradle ./Project_B …
jmc34
  • 810
  • 3
  • 10
  • 22
10
votes
2 answers

SBT build, run main class from subproject on Compile and run

I have a simple build tool Multi-Project problem... I have the following directory structure represents my java sbt projects: /project1 /project2 /project3 So all projects share a common direct parent folder. Projects 2 and 3 are referenced in…
Misael Neto
  • 163
  • 2
  • 8
9
votes
1 answer

Using static library and bundle products from Xcode 4 subproject

I have a workspace containing 2 projects: A project that has 2 products: a static library and a resource bundle A project that builds an iOS app. The first project has been added as a subproject reference under the second project. I have the…
brianpartridge
  • 763
  • 8
  • 19
8
votes
3 answers

Module from sub-project (framework) can't be found

I am using XCode 8 + Swift 3. I created a fresh iOS project named "MyApp". Then, I create a Cocoa touch framework project, named "MySubProject". (The idea is to have MyApp project accessing MySubProject code.) They are on the same level folder: -…
Leem.fin
  • 40,781
  • 83
  • 202
  • 354
8
votes
1 answer

Gradle subproject build dependency

I have a dependency problem and I do not know how to solve it. I have a project A, B and C. A needs B and C B needs C My directory structure looks like this: A |-settings.gradle |-build.gradle |-lib |- B |- C settings.gradle content: include…
Klaus
  • 1,171
  • 1
  • 11
  • 16
7
votes
2 answers

Where to set CMAKE_CONFIGURATION_TYPES in a project with subprojects

Lets say I have a project with two independent subprojects. If I understood cmake correctly, the idea would be to have one root CMakeLists.txt defining a project(...) and then using add_subdirectory(...) to include the subprojects. Each subproject…
Flogo
  • 1,673
  • 4
  • 20
  • 33
6
votes
1 answer

Cross-Project source code reference in Xcode 4

I know you can have Xcode refer to framework / static lib build targets in other projects, but if the project you want to refer to doesn't have a framework / static lib target, can you directly refer to source code from another Xcode project? I…
Tony
  • 36,591
  • 10
  • 48
  • 83
6
votes
2 answers

Xcode & iPhone - Best way for reusing code within multiple projects?

What is the best way to reuse code within projects? Let's say I implemented a UI Element and I want it to be used in both my iphone and ipad application without having to copy the code over and have 2 copies of it.
aryaxt
  • 76,198
  • 92
  • 293
  • 442
6
votes
2 answers

Removing subproject commit from github

I have two repositories namely A and B. By mistake I cloned repo B inside A on my machine. I removed all the code from the repo B but when I pushed and merged my code from A on origin, it also shows a subproject commit B on Github repo. I want to…
Hellboy
  • 1,199
  • 2
  • 15
  • 33
5
votes
0 answers

SBT: how to exclude one sub-project from one aggregated task

I have a bunch of sub-project that I define as follows (actually generated by a project/meta.sbt): lazy val Top = (project in file(".")) .aggregate(common, p1, p2, tests, scripts) .dependsOn(common, p1, p2, tests, scripts) lazy val common =…
Eli Barzilay
  • 29,301
  • 3
  • 67
  • 110
1
2 3
10 11