-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
33 lines (29 loc) · 966 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import org.gradle.tooling.GradleConnector
import org.gradle.tooling.ProjectConnection
import org.gradle.tooling.BuildLauncher
import org.gradle.tooling.events.ProgressListener
import org.gradle.tooling.events.ProgressEvent
project.ext {
androidProjDir = "${rootDir}/android-proj"
}
task build << {
ProjectConnection connection = GradleConnector.newConnector()
.forProjectDirectory(new File(project.androidProjDir))
.connect();
try {
BuildLauncher build = connection.newBuild();
build.forTasks(":google-maps-view-lib:clean", ":google-maps-view-lib:build");
build.addProgressListener(new ProgressListener() {
@Override
void statusChanged(ProgressEvent progressEvent) {
logger.lifecycle("$progressEvent")
}
});
build.run();
} finally {
connection.close();
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}