Skip to content

Commit 5aeb01f

Browse files
committed
Android coupled in README, template up
1 parent a118e44 commit 5aeb01f

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

org.nodeclipse.enide.editors.gradle/docs/android/build.gradle

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@
1616
* 2014-04-10 wrapper and runAndroidApplication tasks
1717
* 2014-04-25 rename to run, add <<
1818
* 2014-05-23 defaut plugin version 0.10.x
19+
* 2014-06-06 show "boilerplate part"
1920
* @author Paul Verest
2021
*/
2122
println GradleVersion.current().prettyPrint()
23+
assert gradle.gradleVersion >= "1.10" // android plugin 0.10 requires Gradle 1.10, 1.11, 1.12
24+
// after `gradle wrapper` it is possible to use './gradlew build' with Gradle version specified
25+
task wrapper(type: Wrapper) {
26+
gradleVersion = '1.12'
27+
}
2228

29+
//{ "boilerplate part"
2330
buildscript {
2431
repositories {
2532
mavenCentral()
@@ -29,16 +36,19 @@ buildscript {
2936
classpath 'com.android.tools.build:gradle:0.10.+'
3037
}
3138
}
32-
assert gradle.gradleVersion >= "1.10" // android plugin 0.10 requires Gradle 1.10, 1.11, 1.12
33-
// after `gradle wrapper` it is possible to use './gradlew build' with Gradle version specified
34-
task wrapper(type: Wrapper) {
35-
gradleVersion = '1.12'
36-
}
3739
apply plugin: 'android'
3840

3941
dependencies {
4042
compile fileTree(dir: 'libs', include: '*.jar')
4143
//androidTestCompile 'com.jayway.android.robotium:robotium-solo:4.3.1'
44+
45+
// http://blog.futurice.com/android_unit_testing_in_ides_and_ci_environments
46+
//androidTestCompile 'org.robolectric:robolectric:2.+'
47+
//androidTestCompile 'junit:junit:4.+'
48+
49+
// for multi-module project build (needs `settings.gradle`):
50+
// reference needed modules or App under test (for Eclipse Android Test project)
51+
//compile project(':Module')
4252
}
4353

4454
android {
@@ -69,6 +79,7 @@ android {
6979
release.setRoot('build-types/release')
7080
}
7181
}
82+
//} "boilerplate part"
7283

7384
// runAndroidApplication
7485
task run (type: Exec, dependsOn: ':installDebug') << {

org.nodeclipse.enide.editors.gradle/docs/android/multi-module/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ In multi-module project `settting.gradle` is required to specify module location
77
( While for simple project you can play with build using `gradle -b` option
88
to specify what `build.gradle` to use, e.g. `gradle -b second.gradle`,
99
for multi-module project `settings.gradle` is the only way. )
10+
11+
> `-b` allows to pass a different build script for a single-project build.
12+
> It is not meant to be used for multi-project builds, where `settings.gradle` alone determines where build scripts are located.
1013
1114
hierarchical project layout
1215

org.nodeclipse.enide.editors.gradle/docs/android/multi-module/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99
}
1010
}
1111

12+
// using key Gradle features like the allprojects and subprojects keywords automatically cause your projects to be coupled.
1213
/*
1314
allprojects {
1415
repositories {

0 commit comments

Comments
 (0)