-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
94 lines (76 loc) · 2.1 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
plugins {
id 'com.github.johnrengelman.shadow' version '6.1.0' apply false
id 'java'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group 'io.sisu'
version '1.4.1-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation 'net.java.dev.jna:jna:5.12.1'
implementation 'org.projectlombok:lombok:1.18.24'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
//test {
// useJUnitPlatform()
//}
task getVersion {
System.out.println("${project.version}")
}
project(':benchmarks') {
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'io.sisu.nng'
version = parent.version
repositories {
mavenCentral()
}
dependencies {
implementation rootProject
implementation 'net.java.dev.jna:jna:5.6.0'
}
jar {
manifest {
attributes 'Description': 'Some (contrived) benchmarks of NNG-Java'
}
}
}
project(':demo') {
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'io.sisu.nng'
version = parent.version
repositories {
mavenCentral()
}
dependencies {
implementation rootProject
}
jar {
manifest {
attributes 'Description': 'Some demonstrations of NNG-Java'
}
}
task runDemoAsyncServer(type: JavaExec) {
group = "Execution"
description = "Run the Async Server demo"
classpath = sourceSets.main.runtimeClasspath
main = $/io.sisu.nng.demo.async.Server/$
environment "JNA_LIBRARY_PATH", System.getenv("JNA_LIBRARY_PATH")
}
task runDemoAsyncClient(type: JavaExec) {
group = "Execution"
description = "Run the Async Client demo"
classpath = sourceSets.main.runtimeClasspath
main = $/io.sisu.nng.demo.async.Client/$
environment "JNA_LIBRARY_PATH", System.getenv("JNA_LIBRARY_PATH")
}
}