-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
44 lines (33 loc) · 902 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
import com.github.sherter.googlejavaformatgradleplugin.GoogleJavaFormat
import com.github.sherter.googlejavaformatgradleplugin.VerifyGoogleJavaFormat
plugins {
id 'com.github.sherter.google-java-format' version '0.8'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
mainClassName = 'Decide'
repositories {
mavenCentral()
}
jar {
baseName = 'jb-hello-world'
version = '0.1.0'
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
compile "joda-time:joda-time:2.2"
testCompile "junit:junit:4.12"
}
googleJavaFormat {
toolVersion = "1.6"
}
task format(type: GoogleJavaFormat) {}
task verifyFormatting(type: VerifyGoogleJavaFormat) {}
task installGitHooks(type: Copy) {
from new File(rootProject.rootDir, 'config/hooks/pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
build.dependsOn installGitHooks