-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (37 loc) · 1.3 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'idea'
group = 'org.monitor'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.7'
compile group: 'com.google.guava', name: 'guava', version: '17.0'
compile group: 'net.java.dev.jna', name: 'jna', version: '4.1.0'
compile group: 'net.java.dev.jna', name: 'jna-platform', version: '4.1.0'
compile group: 'com.github.sarxos', name: 'webcam-capture', version: '0.3.9'
runtime group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.2'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
task sourceJar(type: Jar) {
description = "Create a JAR with all sources"
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
description = "Create a JAR with the JavaDoc for the java sources"
from javadoc.destinationDir
classifier = 'javadoc'
}
// Define the artifacts we want to publish (the .pom will also be included since the Maven plugin is active)
artifacts {
archives sourceJar
archives javadocJar
}