-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
104 lines (80 loc) · 2.46 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
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
//Needed only for SNAPSHOT versions
//maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
}
}
plugins {
id("java")
id("idea")
id("eclipse")
id("jacoco")
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
}
version = '0.33.2-SNAPSHOT'
group = 'de.otto.synapse'
ext {
awsSdkVersion = "2.28.9"
springBootVersion = "3.3.4"
edisonVersion = "3.3.2"
testcontainersVersion = "1.20.1"
}
jacocoTestReport {
reports {
xml.required.set(true)
html.required.set(true)
}
}
nexusPublishing {
repositories {
sonatype()
}
}
test.finalizedBy jacocoTestReport
tasks.register('startLocalStack', Exec) {
commandLine "docker", "run", "--name", "synapse_localstack", "-d", "-p", "4566:4566", "localstack/localstack:3.7.2"
}
tasks.register('stopLocalStack', Exec) {
commandLine 'docker', 'rm', '-f', 'synapse_localstack'
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply from: "${rootDir}/jacoco.gradle"
sourceCompatibility = '17'
targetCompatibility = '17'
dependencies {
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
implementation(platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}"))
testImplementation(platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}"))
testImplementation(platform("org.testcontainers:testcontainers-bom:${testcontainersVersion}"))
implementation(platform("software.amazon.awssdk:bom:${awsSdkVersion}"))
}
task allDeps(type: DependencyReportTask) {}
compileJava.dependsOn(processResources)
project.afterEvaluate {
tasks.withType(JavaCompile).configureEach {
options.compilerArgs.add("-parameters")
}
}
version = parent.version
group = parent.group
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}