-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (60 loc) · 1.7 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'checkstyle'
apply plugin: 'eclipse'
apply plugin: 'idea'
defaultTasks 'clean', 'build', 'install'
version = '0.0.1'
repositories {
mavenCentral()
maven {
url "http://sevntu-checkstyle.github.com/sevntu.checkstyle/maven2"
}
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
compileJava {
// Suppress warnings about using Unsafe and sun.misc
options.compilerArgs << '-XDignore.symbol.file'
options.fork = true
options.forkOptions.executable = 'javac'
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
dependencies {
checkstyle "com.github.sevntu.checkstyle:sevntu-checks:1.17.1"
compile(
'org.hdrhistogram:HdrHistogram:2.1.8',
'uk.co.real-logic:Agrona:0.5',
'uk.co.real-logic:aeron-client:0.9.6',
'uk.co.real-logic:aeron-driver:0.9.6',
'com.lmax:disruptor:3.3.4',
'com.vlkan:flatbuffers:1.2.0-3f79e055')
testCompile(
'org.hamcrest:hamcrest-all:1.3',
'junit:junit:4.12',
'org.mockito:mockito-all:1.10.19')
}
checkstyle {
configFile = new File(rootDir, 'config/checkstyle/checkstyle.xml')
toolVersion = "6.14.1"
}
javadoc {
title = '<h1>Tests</h1>'
options.bottom = '<i>Copyright © 2016. All Rights Reserved.</i>'
options.addStringOption('XDignore.symbol.file', '-quiet')
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
task wrapper(type: Wrapper) {
gradleVersion = '2.10'
}