forked from otto-de/synapse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (53 loc) · 1.64 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
buildscript {
repositories {
mavenCentral()
//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.11.0"
}
}
ext {
awsSdkVersion = "2.10.56"
springVersion = "5.2.0.RELEASE"
springBootVersion = "2.2.0.RELEASE"
edisonVersion = "2.2.0"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'io.codearte.nexus-staging'
apply from: "${rootDir}/jacoco.gradle"
task startLocalStack(type:Exec) {
commandLine "docker", "run", "--name", "synapse_localstack", "-d", "-p", "4567-4583:4567-4583", "localstack/localstack:latest"
}
task stopLocalStack(type: Exec) {
commandLine 'docker', 'rm', '-f', 'synapse_localstack'
}
nexusStaging {
username=sonatypeUsername
password=sonatypePassword
packageGroup='de.otto'
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply from: "${rootDir}/jacoco.gradle"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
dependencies {
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
}
task allDeps(type: DependencyReportTask) {}
compileJava.dependsOn(processResources)
version = '0.22.0-SNAPSHOT'
group = 'de.otto.synapse'
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}