-
Notifications
You must be signed in to change notification settings - Fork 78
/
build.gradle
65 lines (56 loc) · 1.37 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
plugins {
id 'edu.wpi.first.GradleJni' version '0.3.0'
id 'java'
id 'c'
}
repositories {
maven {
url 'https://dev.imjac.in/maven'
}
}
dependencies {
compile 'jaci.jniloader:JNILoader:1.0.1'
}
model {
components {
pathfinderjni(JniNativeLibrarySpec) {
enableCheckTask true
javaCompileTasks << compileJava
sources {
c {
source {
srcDir 'src/native/c'
include '**/*.c'
}
lib project: ':Pathfinder-Core', library: 'pathfinder', linkage: 'static'
}
}
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
pathfinderJava(MavenPublication) {
artifactId 'Pathfinder-Java'
artifact jar
artifact sourcesJar {
classifier 'sources'
}
artifact javadocJar {
classifier 'javadoc'
}
}
pathfinderJni(MavenPublication) {
artifactId 'Pathfinder-JNI'
binaryArtifacts(it, 'pathfinderjni', true)
}
}
}