-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle
71 lines (61 loc) · 1.49 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import com.android.build.gradle.tasks.MergeResources
ext {
minSdkVersion = 8
targetSdkVersion = 22
versionCode = 1
commonVersions = [
grooidVersion: '2.4.3',
androidSupportVersion: '22.0.0',
buildToolsVersion: '22.0.1',
compileSdkVersion: 22
]
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'org.codehaus.groovy:gradle-groovy-android-plugin:0.3.6'
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.0'
}
}
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
allprojects {
apply plugin: 'idea'
repositories {
jcenter()
}
version = "1.4.0"
group = 'com.arasthel.swissknife'
}
gradle.taskGraph.whenReady {
allprojects {
tasks.withType(GroovyCompile) { task ->
logger.lifecycle("Task $task")
task.groovyOptions.forkOptions.jvmArgs = ['-noverify']
}
tasks.withType(MergeResources) { task ->
task.process9Patch = false
}
}
}
tasks.whenTaskAdded {
if (it.name.contains('lint') || it.name.contains('Lint')) {
it.enabled = false
}
}
asciidoctor {
sourceDir = 'docs' as File
options = [
attributes: [
'imagesdir':'images',
'icons': 'font',
'source-highlighter': 'prettify',
'toc': 'left'
]
]
}
task getVersion << {
println VERSION_NAME
}