-
Notifications
You must be signed in to change notification settings - Fork 43
/
build.gradle
41 lines (34 loc) · 847 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
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'maven-publish'
group = 'fuse-jna'
version = '1.0.3'
repositories {
mavenCentral()
}
dependencies {
compile 'net.java.dev.jna:jna:4.1.0'
compile "org.codehaus.groovy:groovy-all:2.1.5"
}
task uberJar(type: Jar) {
description = 'Make JAR with all the dependencies included'
classifier = 'uber'
dependsOn configurations.runtime
from sourceSets.main.output
from { configurations.runtime.collect { it.directory ? it : zipTree(it) } }
}
task sourceJar(type: Jar) {
description = 'Make JAR of all the source files'
classifier = 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourceJar
artifact uberJar
}
}
}