forked from kohesive/vertx-sqs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
115 lines (98 loc) · 2.87 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-SQS Integration"
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}
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: 'groovy'
apply plugin: 'maven-publish'
apply plugin: "maven"
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'
}
*/
}
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-service-proxy:$version_vertx"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
compile "com.amazonaws:aws-java-sdk-sqs:$version_sqs"
compile "nl.komponents.kovenant:kovenant:$version_kovenant"
annotationProcessor "io.vertx:vertx-codegen:$version_vertx"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
testCompile "org.elasticmq:elasticmq-core_2.11:$version_elasticmq"
testCompile "org.elasticmq:elasticmq-rest-sqs_2.11:$version_elasticmq"
testCompile "junit:junit:$version_junit"
}
task cleanGenerated(type: Delete) {
delete generatedSrcDir
}
compileJava {
dependsOn cleanGenerated
doFirst {
mkdir generatedSrcDir
}
options.compilerArgs += [
"-AoutputDirectory=$generatedSrcDir",
"-processor", "io.vertx.codegen.CodeGenProcessor"
]
classpath += configurations.annotationProcessor
}