-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
79 lines (67 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
70
71
72
73
74
75
76
77
78
79
plugins {
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.2'
}
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'maven-publish'
wrapper.gradleVersion = '4.6'
version = '1.0.10'
group = 'com.github.edugonza'
println name+" v"+version
repositories {
mavenLocal()
mavenCentral()
maven { url "https://jitpack.io" }
}
sourceSets {
main {
java {
srcDirs = ['src/']
}
resources {
srcDirs = ['resources/']
}
}
test {
java {
srcDirs = ['test/']
}
}
}
jar {
dependsOn javadoc
from sourceSets.main.allSource
from javadoc.destinationDir
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
}
artifacts {
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact javadocJar
}
}
repositories {
mavenLocal()
}
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
dependencies {
compile 'log4j:log4j:1.2.16'
compile 'org.jgrapht:jgrapht-core:1.0.0'
compile 'org.xerial:sqlite-jdbc:3.23.1'
compile 'org.mapdb:mapdb:3.0.5'
testCompile 'junit:junit:4.12'
}