forked from rpi-ws281x/rpi-ws281x-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (38 loc) · 858 Bytes
/
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
plugins {
id 'net.researchgate.release' version '2.6.0'
}
apply plugin: 'java'
group = 'com.github.mbelling'
sourceSets {
main {
java {
// Get the generated source from SWIG
srcDirs 'build/generatedSource/java'
}
resources {
// Get the native .so file
srcDirs 'build/nativeLib'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.apache.logging.log4j:log4j-api:2.10.0'
runtime 'org.apache.logging.log4j:log4j-core:2.10.0'
testCompile 'junit:junit:4.12'
}
task sourceJar(type: Jar) {
classifier "sources"
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourceJar
archives javadocJar
}