-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
85 lines (73 loc) · 2.11 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
// Project information
version = '2.0.1'
description = 'Japanese holiday.'
group = 'com.github.holidayjp'
siteUrl = 'https://github.com/holiday-jp/holiday_jp-java'
gitUrl = 'https://github.com/holiday-jp/holiday_jp-java.git'
userOrg = 'pinemz'
// Library version
findbugsVersion = '3.0.2'
kotlinVersion = '1.2.51'
junitVersion = '4.12'
// Android build configuration
compileSdkVersion = 27
minSdkVersion = 15
buildToolsVersion = '27.0.3'
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'net.rdrei.android.buildtimetracker:gradle-plugin:0.11.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define gradle `generate` custom task
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import com.github.holidayjp.buildscript.GeneratorTask
task generate {
group 'HolidayJp'
description 'Generate \'Holidays.java\' from datasheet'
doLast {
def rootDir = rootProject.projectDir.absolutePath
GeneratorTask.run(rootDir)
}
}
// Define gradle `isGitDirty` custom task
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import com.github.holidayjp.buildscript.GitDirtyCheckerTask
task isGitDirty {
group 'HolidayJp'
description 'Check if git status is dirty'
doLast {
GitDirtyCheckerTask.run()
}
}
// Build Time Tracker task
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~
apply plugin: 'build-time-tracker'
buildtimetracker {
reporters {
summary {
ordered false
threshold 50
barstyle "unicode"
}
}
}