-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (58 loc) · 1.98 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
import jp.classmethod.aws.gradle.sqs.AmazonSQSSendMessagesTask
import java.util.stream.Stream
buildscript {
ext {
springBootVersion = '1.4.0.RELEASE'
}
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('jp.classmethod.aws:gradle-aws-plugin:0.+')
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'spring-boot'
apply plugin: "jp.classmethod.aws.sqs"
jar {
baseName = 'spring-boot-aws-camel'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
ext {
camelVersion = '2.17.2'
awsSdkVersion = '1.10.52'
}
springBoot {
mainClass = "com.github.sdavids13.camel.SpringBootAwsCamelApplication"
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-actuator')
compile("org.apache.camel:camel-spring-boot-starter:${camelVersion}")
compile("com.amazonaws:aws-java-sdk-sqs:${awsSdkVersion}")
compile("com.amazonaws:aws-java-sdk-sns:${awsSdkVersion}")
runtime('org.springframework.boot:spring-boot-starter-activemq')
runtime("org.apache.camel:camel-jms:${camelVersion}")
runtime("org.apache.camel:camel-aws:${camelVersion}")
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile("org.apache.camel:camel-test-spring:${camelVersion}")
}
eclipse {
classpath {
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
}
}
task sendMessages(type: AmazonSQSSendMessagesTask) {
queueName 'spring-boot-camel-entrypoint'
messages Stream.generate { "Message ${UUID.randomUUID()}".toString() }.limit(250)
}