forked from stempler/unpuzzle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (33 loc) · 852 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
34
35
36
37
38
39
40
41
42
43
44
45
buildscript {
repositories {
mavenLocal()
jcenter()
}
}
apply plugin: 'base' // import clean task
allprojects {
apply plugin: 'eclipse'
}
ext {
project_website="https://github.com/${developerId}/${projectId}"
project_scm = "scm:[email protected]:${developerId}/${projectId}.git"
license_url = "https://raw.github.com/${developerId}/${projectId}/master/LICENSE"
}
if( !hasProperty( 'bintrayUser' ) )
ext.bintrayUser = ''
if( !hasProperty( 'bintrayApiKey' ) )
ext.bintrayKey = ''
task('build')
task('buildExamples', type: GradleBuild) { task ->
dir = file('examples')
tasks = [ 'build' ]
}
// build.finalizedBy buildExamples
task('cleanExamples', type: GradleBuild) { task ->
dir = file('examples')
tasks = [ 'clean' ]
}
// clean.dependsOn cleanExamples
task('wrapper', type: Wrapper) {
gradleVersion = '2.3'
}