forked from manuel-mauky/EasyDI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (47 loc) · 1.24 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
apply plugin: "java"
apply plugin: 'sonar-runner'
apply plugin: "jacoco"
apply plugin: "java-library-distribution"
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
// run Sonar analysis:
// ./gradlew clean test sonarRunner
group = "eu.lestard"
version = "0.4.0"
apply from: "maven_upload.gradle"
// Create Distribution ZIP with './gradlew distZip'
distributions {
main {
baseName = "easy-di"
contents {
from {'README.md'}
from {'LICENSE.md'}
}
}
}
configurations {
markdownDoclet
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven{
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
markdownDoclet 'ch.raffael.pegdown-doclet:pegdown-doclet:1.1.1'
compile 'javax.inject:javax.inject:1'
// testing
testCompile "junit:junit:4.11"
testCompile "org.assertj:assertj-core:1.6.0"
}
javadoc.options {
links "http://docs.oracle.com/javase/8/docs/api/", "http://docs.oracle.com/javaee/6/api"
docletpath = configurations.markdownDoclet.files.asType(List)
doclet = "ch.raffael.doclets.pegdown.PegdownDoclet"
addStringOption("parse-timeout", "10")
}