-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
89 lines (69 loc) · 2.36 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
apply plugin: 'java'
apply plugin: 'eclipse'
//apply plugin: 'application'
apply plugin: 'me.tatarka.retrolambda'
sourceCompatibility = 1.8
version = '0.1'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
//compile 'net.sourceforge.streamsupport:streamsupport:1.1.5'
//compile 'io.reactivex:rxjava:1.0.8'
//compile 'io.reactivex:rxjava-computation-expressions:0.21.0'
//compile 'commons-io:commons-io:2.4'
//compile 'org.apache.derby:derby:10.11.1.1'
compile 'io.reactivex:rxnetty:0.4.8'
//compile 'io.reactivex:rxnetty-servo:0.4.8'
compile 'org.slf4j:slf4j-simple:1.6.4'
//compile 'org.slf4j:slf4j-api:1.6.4'
//compile 'org.slf4j:slf4j-log4j12:1.6.4'
//compile 'commons-cli:commons-cli:1.2'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
task runSimpleTcpServer (dependsOn: [classes], type: JavaExec) {
group = "Examples"
description = "Run Simple Tcp Server"
main = "io.reactivex.netty.samples.SimpleTcpServer"
classpath = sourceSets.main.runtimeClasspath
}
task runSimpleTcpClient (dependsOn: [classes], type: JavaExec) {
group = "Examples"
description = "Run Simple Tcp Client"
main = "io.reactivex.netty.samples.SimpleTcpClient"
classpath = sourceSets.main.runtimeClasspath
}
task runSimplePostServer (dependsOn: [classes], type: JavaExec) {
group = "Examples"
description = "Run Simple Post Server"
main = "io.reactivex.netty.samples.SimplePostServer"
classpath = sourceSets.main.runtimeClasspath
}
task runSimplePostClient (dependsOn: [classes], type: JavaExec) {
group = "Examples"
description = "Run Simple Post Client"
main = "io.reactivex.netty.samples.SimplePostClient"
classpath = sourceSets.main.runtimeClasspath
}
//mainClassName = "io.reactivex.netty.samples.SimplePostClient"
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
// attributes 'Main-Class': "io.reactivex.netty.samples.SimplePostClient"
}
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "me.tatarka:gradle-retrolambda:3.0.1"
}
}
retrolambda {
jdk "/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home"
oldJdk "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"
javaVersion JavaVersion.VERSION_1_6
}