multi-project

Gradle and Multi-Project structure

江枫思渺然 提交于 2019-11-26 21:19:44
I'm trying to understand how should I approach the following project setup: ┌Top Android Project │ ├── Project 1 - (Pure Java Modules) │ │ │ ├── Module A1 │ ├── Module B1 │ : │ └── Module Z1 │ ├── Project 2 - (Android Libraries Modules) │ │ │ ├── Module A2 │ ├── Module B2 │ : │ └── Module Z2 │ └── Module - Actual Android Project In the current setup I have there is a build.gradle in each of the Modules, what I really hate about this setup is that all the content of the build.gradle is duplicated between modules. Fact is that I would like the same logic in most of them, ' Pure Java Modules '

Multiple settings gradle files for multiple projects building

有些话、适合烂在心里 提交于 2019-11-26 12:08:50
问题 I have the following project structure -->Starnderd Location -->Project1 -->settings.gradle -->build.gradle -->Subproject11 -->build.gradle -->Subproject12 -->build.gradle -->Project2 -->settings.gradle -->build.gradle -->Subproject21 -->build.gradle -->Subproject22 -->build.gradle -->build.gradle -->settings.gradle Idea of above project structure is that we have multiple projects which contains subprojects, each project can have dependencies to other projects. Also subprojects inside the

Multi-project test dependencies with gradle

孤人 提交于 2019-11-26 11:39:24
I have a multi-project configuration and I want to use gradle. My projects are like this: Project A -> src/main/java -> src/test/java Project B -> src/main/java (depends on src/main/java on Project A ) -> src/test/java (depends on src/test/java on Project A ) My Project B build.gradle file is like this: apply plugin: 'java' dependencies { compile project(':ProjectA') } The task compileJava work great but the compileTestJava does not compile the test file from Project A . Fesler Deprecated In Project B , you just need to add a testCompile dependency: dependencies { ... testCompile project(':A')

Gradle and Multi-Project structure

放肆的年华 提交于 2019-11-26 07:55:21
问题 I\'m trying to understand how should I approach the following project setup: ┌Top Android Project │ ├── Project 1 - (Pure Java Modules) │ │ │ ├── Module A1 │ ├── Module B1 │ : │ └── Module Z1 │ ├── Project 2 - (Android Libraries Modules) │ │ │ ├── Module A2 │ ├── Module B2 │ : │ └── Module Z2 │ └── Module - Actual Android Project In the current setup I have there is a build.gradle in each of the Modules, what I really hate about this setup is that all the content of the build.gradle is