-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
115 lines (97 loc) · 2.82 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
description "Collokia's Vertx-DynamoDB Streams Integration"
task wrapper(type: Wrapper) {
gradleVersion = '2.5'
}
buildscript {
repositories {
jcenter()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'groovy'
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())
}
repositories {
mavenCentral()
maven {
url = 'http://oss.sonatype.org/content/repositories/snapshots/'
}
}
configurations {
annotationProcessor
}
ext {
generatedSrcDir = "$projectDir/src/generated"
}
sourceSets {
main {
groovy {
srcDir "$generatedSrcDir/groovy"
}
resources {
srcDir "$generatedSrcDir/resources"
}
}
}
dependencies {
compile "io.vertx:vertx-core:$version_vertx"
compile "io.vertx:vertx-unit:$version_vertx"
compile "io.vertx:vertx-codegen:$version_vertx"
compile "io.vertx:vertx-lang-groovy:$version_vertx"
compile "io.vertx:vertx-lang-js:$version_vertx"
compile "io.vertx:vertx-service-factory:$version_vertx"
compile "io.vertx:vertx-hazelcast:$version_vertx"
compile "io.vertx:vertx-service-proxy:$version_vertx"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
compile "com.amazonaws:aws-java-sdk-dynamodb:$version_dynamodb"
compile "nl.komponents.kovenant:kovenant:$version_kovenant"
annotationProcessor "io.vertx:vertx-codegen:$version_vertx"
testCompile "junit:junit:$version_junit"
testCompile "net.lingala.zip4j:zip4j:$version_zip4j"
}
test {
systemProperty "DynamoDB.Local.Path", "$projectDir/lib/dynamodb_local_2015-07-16_1.0.zip"
}
task cleanGenerated(type: Delete) {
delete generatedSrcDir
}
compileJava {
dependsOn cleanGenerated
doFirst {
mkdir generatedSrcDir
}
options.compilerArgs += [
"-AoutputDirectory=$generatedSrcDir",
"-processor", "io.vertx.codegen.CodeGenProcessor"
]
classpath += configurations.annotationProcessor
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
repositories {
maven {
url "https://collokia.artifactoryonline.com/collokia/collokia-internal"
credentials {
username "${collokiaRepoUser}"
password "${collokiaRepoPass}"
}
}
}
}