-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (84 loc) · 2.85 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
95
96
description "Collokia's Vertx-EventSource Integration"
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}
buildscript {
repositories {
jcenter()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
mavenCentral()
/*
maven {
url 'http://dl.bintray.com/kotlin/kotlin-eap'
}
*/
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'maven-publish'
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException('''A Haiku:
| This needs Java 8,
| You are using something else,
| Refresh. Try again.'''.stripMargin())
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven {
url = 'http://oss.sonatype.org/content/repositories/snapshots/'
}
/*
maven {
url 'http://dl.bintray.com/kotlin/kotlin-eap'
}
maven {
url 'http://dl.bintray.com/jaysonminard/kohesive'
}
maven {
url 'http://dl.bintray.com/mplatvoet/komponents'
}
*/
}
dependencies {
compile "io.vertx:vertx-core:$version_vertx"
compile "io.vertx:vertx-unit:$version_vertx"
compile ("org.glassfish.jersey.media:jersey-media-sse:$version_sse") {
exclude group: "org.glassfish.jersey.core", module: "jersey-server"
}
compile "org.glassfish.jersey.core:jersey-client:$version_sse"
compile "nl.komponents.kovenant:kovenant:$version_kovenant"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
testCompile "junit:junit:$version_junit"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
testCompile "org.eclipse.jetty:jetty-server:$version_jetty"
testCompile "org.eclipse.jetty:jetty-servlet:$version_jetty"
testCompile "org.glassfish.jersey.core:jersey-server:$version_jersey"
testCompile "org.glassfish.jersey.containers:jersey-container-servlet:$version_jersey"
testCompile "org.glassfish.jersey.containers:jersey-container-servlet-core:$version_jersey"
testCompile "org.glassfish.jersey.containers:jersey-container-jetty-http:$version_jersey"
testCompile "org.glassfish.jersey.media:jersey-media-moxy:$version_jersey"
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
repositories {
maven {
url "https://collokia.artifactoryonline.com/collokia/collokia-internal"
credentials {
username "${collokiaRepoUser}"
password "${collokiaRepoPass}"
}
}
}
}