forked from afollestad/ason
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (51 loc) · 1.41 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
apply from: "$rootDir/gradle/dependencies.gradle"
group 'com.afollestad'
version versions.publishVersion
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'com.novoda.bintray-release'
sourceCompatibility = 1.7
buildscript {
apply from: "$rootDir/gradle/dependencies.gradle"
repositories {
jcenter()
}
dependencies {
classpath "com.novoda:bintray-release:$versions.bintrayRelease"
classpath "com.diffplug.spotless:spotless-plugin-gradle:$versions.spotlessPlugin"
}
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: versions.junit
testCompile group: 'com.google.code.gson', name: 'gson', version: versions.gson
implementation group: 'org.json', name: 'json', version: versions.json
implementation group: 'com.intellij', name: 'annotations', version: versions.intellij
}
publish {
userOrg = 'drummer-aidan'
groupId = 'com.afollestad'
artifactId = 'ason'
publishVersion = versions.publishVersion
website = 'https://github.com/afollestad/ason'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
apply plugin: "com.diffplug.gradle.spotless"
spotless {
java {
target "**/*.java"
trimTrailingWhitespace()
removeUnusedImports()
googleJavaFormat()
endWithNewline()
}
}