-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (29 loc) · 868 Bytes
/
build.gradle
File metadata and controls
38 lines (29 loc) · 868 Bytes
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
apply plugin: 'java'
apply plugin: 'project-report'
version = "0.0.1"
group = "whatever.group.change.it"
dependencies {
// just some examples
compile group: 'org.glassfish.grizzly', name: 'grizzly-framework', version: '2.3.3'
compile group: 'org.glassfish.grizzly', name: 'grizzly-http-server', version: '2.3.3'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
repositories {
mavenCentral()
}
task(runApp, dependsOn: 'classes', type: JavaExec) {
main = 'name.bpdp.grizzly.BlockingHttpHandlerSample'
classpath = sourceSets.main.runtimeClasspath
// put also args and systemProperty if you like
//args 'arg'
//systemProperty 'first.property', 'EHLO'
}
test {
maxParallelForks = 5
maxHeapSize = '1024m'
}
// copy all needed jar after gradle build
task copyToLib(type: Copy) {
into "lib"
from configurations.runtime
}