multi-project

SBT: How to define dependencies of subprojects in subprojects' build.sbt files?

馋奶兔 提交于 2019-12-04 16:16:39
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 = (project in file("lib/a")) lazy val bLib = (project in file("lib/b")) .dependsOn(aLib) .dependsOn(cLib) lazy val cLib = (project in file("lib/c")) .dependsOn(aLib) lazy val myApp = (project in file("myapp")) .dependsOn(aLib) .dependsOn(bLib) .dependsOn(cLib) .aggregate(aLib, bLib, cLib) Since each subproject (directories lib/a, lib/b, lib/c, myapp) has its own

how to tell gradle to build and upload archives of dependent projects to local maven

 ̄綄美尐妖づ 提交于 2019-12-04 10:15:10
I have a multi-project problem that Gradle's documentation doesn't have any info on (and can't find on stackoverflow also). Any help/guidance will be greatly appreciated. Here are my project layouts: project LeftArm : produces a jar file project RightArm : produces a jar file project AllArms : depends on projects LeftArm and RightArm and produces a war file When I run 'gradle build uploadArchives' in AllArms project, it builds LeftArm and RightArm projects but it doesn't upload the jar files (produced by LeftArm and RightArm projects) to local Maven repo. Here are my build.gradle files:

How do you handle multiple (overlapping) projects in trac?

萝らか妹 提交于 2019-12-04 01:20:16
We are using trac and are really satisfied with it. However, out of the box, trac is best suited for single-project environments only. I'd be interested to hear about the various approaches people take to make it work with multiple projects nevertheless and their experiences with them. Are there any plugins to recommend? Any patches, tweaks or whatnots? Are you maybe even using an entirely different bug-tracking system that offers all of trac's functionality plus multi-project support? We recently started managing a second project ourselves which generally works okay but also has some

Gradle multiproject define dependency on root project

无人久伴 提交于 2019-12-03 13:00:05
I have a multi project gradle build, configured in this way: root | |---- projectA | |---- projectB I want to declare in the root/build.gradle a dependency for all nested projects, this is the file: subprojects { version = '1.0-SNAPSHOT' repositories { mavenLocal() mavenCentral() maven { url 'https://repository.jboss.org/nexus/content/groups/public-jboss/' } } } allprojects { dependencies { compile 'org.projectlombok:lombok:1.12.2' } } But when I execute the build, I have: * What went wrong: A problem occurred evaluating root project 'code'. No signature of method: org.gradle.api.internal

GORM fails to realize Domain classes from a plugin are GORM classes

大憨熊 提交于 2019-12-01 07:39:00
I am trying to use a Grails Project as a Plugin to basically have my domain classes in the Plugin and then use them in multiple Grails projects. I've done this: grails create-app web grails create-app plugin create a settings.gradle in the root directory of both projects with include 'plugin', 'web' then I added spring security to the plugin and used s2-quickstart to create a user and a role domain class and added some default users to the Bootstrap.groovy. Starting the plugin project alone doesn't show any issues. Now I added the plugin as a dependency to the web project: compile (':plugin')

GWT. Maven. GWT Module <module_name> not found in project sources or resources

…衆ロ難τιáo~ 提交于 2019-12-01 06:35:59
I have a maven multi-module project. One of this modules (compiled as .jar ) contains only domain objects, which will be used at client and server sides (I add this .jar as dependency to other my modules). I know that GWT module, where will be used objects from shared .jar , must also have source files for successful compilation. So I tried to add to my pom.xml both: <resources> <resource> <directory>src/main/java/<path></directory> <includes> <include>**/*.java</include> <include>**/*.gwt.xml</include> </includes> </resource> </resources> and <plugin> <groupId>org.codehaus.mojo</groupId>

GORM fails to realize Domain classes from a plugin are GORM classes

别等时光非礼了梦想. 提交于 2019-12-01 05:59:08
问题 I am trying to use a Grails Project as a Plugin to basically have my domain classes in the Plugin and then use them in multiple Grails projects. I've done this: grails create-app web grails create-app plugin create a settings.gradle in the root directory of both projects with include 'plugin', 'web' then I added spring security to the plugin and used s2-quickstart to create a user and a role domain class and added some default users to the Bootstrap.groovy. Starting the plugin project alone

GWT. Maven. GWT Module <module_name> not found in project sources or resources

核能气质少年 提交于 2019-12-01 04:48:34
问题 I have a maven multi-module project. One of this modules (compiled as .jar ) contains only domain objects, which will be used at client and server sides (I add this .jar as dependency to other my modules). I know that GWT module, where will be used objects from shared .jar , must also have source files for successful compilation. So I tried to add to my pom.xml both: <resources> <resource> <directory>src/main/java/<path></directory> <includes> <include>**/*.java</include> <include>**/*.gwt

Gradle multi project distribution

限于喜欢 提交于 2019-11-30 08:29:40
I'm trying to make a dist of a multi project build. The root project looks something like this: apply plugin: 'distribution' version 1.0 distributions { main { baseName = 'someName' contents { from 'nodes' into 'nodes' } } } It just copies a folder with some files to the dist. I now want each subproject to inject its stuff into the dist. I want to add each subprojects jar, any dependecies, and possibly some other files etc... I have no idea how to inject from the subproject to the root. Should I even do something like that? What i mean is something like this: subprojects { apply java... ... //

Gradle multi project distribution

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 11:59:23
问题 I'm trying to make a dist of a multi project build. The root project looks something like this: apply plugin: 'distribution' version 1.0 distributions { main { baseName = 'someName' contents { from 'nodes' into 'nodes' } } } It just copies a folder with some files to the dist. I now want each subproject to inject its stuff into the dist. I want to add each subprojects jar, any dependecies, and possibly some other files etc... I have no idea how to inject from the subproject to the root.