-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (54 loc) · 1.26 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
}
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
group = 'se.cyclic.jcyclic'
version = '0.1.8'
// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
compileJava {
targetCompatibility = 1.7
sourceCompatibility = 1.7
}
test {
useJUnit()
}
repositories {
jcenter()
}
dependencies {
testCompile 'junit:junit:4.12'
compile 'com.google.guava:guava:18.0'
compile 'commons-io:commons-io:2.4'
compile 'com.google.code.findbugs:bcel-findbugs:6.0'
compile 'org.jgrapht:jgrapht-core:0.9.0'
compile 'org.slf4j:slf4j-api:1.7.12'
testRuntime 'ch.qos.logback:logback-classic:1.1.3'
}