-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
60 lines (49 loc) · 1.46 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
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'arpit' at '29/8/16 3:52 PM' with Gradle 2.6
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/2.6/userguide/tutorial_java_projects.html
*/
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
group = 'org.wrapper.toupcam'
version = '1.0'
// In this section you declare where to find the dependencies of your project
repositories {
jcenter()
}
jar {
from {configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
attributes 'Main-Class': 'wrapper.toupcam.App'
}
}
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
archives javadocJar
}
// to publish artifact as maven artifact in maven repo.
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
// In this section you declare the dependencies for your production and test code
dependencies {
compile 'org.slf4j:slf4j-api:1.7.12'
compile group: 'net.java.dev.jna', name: 'jna', version: '4.2.2'
testCompile 'junit:junit:4.12'
}