-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
58 lines (51 loc) · 1.8 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
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
plugins {
id "com.github.hierynomus.license" version "0.13.1"
}
wrapper.gradleVersion = '2.13'
configure(allprojects) { project ->
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
jcenter()
}
apply plugin: 'idea'
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
apply plugin: 'java'
def vJavaLang = '1.8'
targetCompatibility = vJavaLang
sourceCompatibility = vJavaLang
dependencies {
compile group: 'org.projectlombok', name: 'lombok', version: '1.16.10'
compile group: 'org.jetbrains', name: 'annotations', version: '13.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.6.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.6.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.6.2'
}
apply plugin: 'com.github.hierynomus.license'
license {
header = rootProject.file('LICENSE')
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.name = 'zgqq'
ext.email = 'zgqjava@gmail.com'
include "**/*.groovy"
includes(["**/*.java", "**/*.properties"])
}
apply plugin: 'checkstyle'
checkstyle {
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
}