-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathbuild.gradle
45 lines (39 loc) · 1.01 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
buildscript {
repositories {
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'net.ltgt.gradle:gradle-apt-plugin:0.19'
}
}
plugins {
id 'checkstyle'
}
allprojects { project ->
project.repositories {
mavenCentral()
}
project.apply from: rootProject.file('dependencies.gradle')
project.plugins.withId("net.ltgt.apt") {
try {
// automatically apply net.ltgt.apt-idea whenever net.ltgt.apt is used
project.apply plugin: "net.ltgt.apt-idea"
// disable addAptDependencies (if you delegate build actions to Gradle)
project.plugins.withType(JavaPlugin) {
project.afterEvaluate {
project.idea.module.apt.addAptDependencies = false
}
}
} catch (ignored) {
// ignore, in case an older version of net.ltgt.apt is being used
// that doesn't come with net.ltgt.apt-idea.
}
}
}
checkstyle {
toolVersion = '8.1'
configDir = file("$rootProject.projectDir/config/checkstyle")
}