-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (57 loc) · 1.93 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
apply plugin: 'java'
apply plugin: 'application'
group = 'testgrp'
version = '0.1.0-SNAPSHOT'
status = 'integration'
ext.classifier = ':' // ':jdk8'
sourceCompatibility = 1.8 // 1.7
targetCompatibility = 1.8 // 1.7
ext.h2Ver = '1.4.191'
ext.comsatVer = '0.7.0'
ext.quasarVer = '0.7.4'
ext.junitVer = '4.12'
ext.slf4jVer = '1.7.21'
ext.metricsVer = '3.1.2'
ext.jdbiVer = '2.73'
ext.httpCoreVer = '4.4.4'
ext.guavaVer = '19.0'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
configurations {
quasar
provided
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
force "io.dropwizard.metrics:metrics-core:$metricsVer"
force "com.google.guava:guava:$guavaVer"
force "org.slf4j:slf4j-api:$slf4jVer"
force "org.jdbi:jdbi:$jdbiVer"
force "org.apache.httpcomponents:httpcore:$httpCoreVer"
}
}
repositories {
// mavenLocal()
mavenCentral()
// maven { url "https://oss.sonatype.org/content/repositories/releases" }
// maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
compile "co.paralleluniverse:quasar-core:$quasarVer"
compile "co.paralleluniverse:comsat-jooq:$comsatVer"
compile "co.paralleluniverse:comsat-dropwizard:$comsatVer"
runtime "com.h2database:h2:$h2Ver"
quasar "co.paralleluniverse:quasar-core:${quasarVer}${classifier}@jar"
testCompile "junit:junit:$junitVer"
}
mainClassName = "${group}.dw.Main"
applicationDefaultJvmArgs = [
"-javaagent:${configurations.quasar.singleFile}", // =vdc
"-Dco.paralleluniverse.fibers.detectRunawayFibers=false",
// "-Dco.paralleluniverse.fibers.verifyInstrumentation=true",
"-Ddropwizard.config=build/resources/main/conf.yml"
]
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}
defaultTasks 'run'