-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.gradle
121 lines (105 loc) · 3.27 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
116
117
118
119
120
121
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
plugins {
id 'java-library'
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'maven-publish'
id 'signing'
id 'org.jetbrains.dokka' version '0.9.18'
}
group = "software.amazon.awsssmchaosrunner"
version = "1.4.0"
sourceSets {
test {
kotlin {
srcDirs = ['src/test/kotlin']
}
}
main {
kotlin {
srcDirs = ['src/main/kotlin']
}
}
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation 'com.amazonaws:aws-java-sdk-ssm:1.+'
implementation 'io.github.microutils:kotlin-logging:1.+'
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.+'
implementation 'org.slf4j:slf4j-api:1.+'
implementation 'software.amazon.awssdk:fis:2.+'
implementation 'org.json:json:20+'
testImplementation 'org.junit.jupiter:junit-jupiter-api:[5.6,)'
testImplementation 'io.mockk:mockk:[1.9,)'
testImplementation 'org.assertj:assertj-core-java8:[1.0,)'
testImplementation 'org.slf4j:slf4j-log4j12:[1.8,)'
testImplementation 'org.apache.logging.log4j:log4j-core:[2.17,)'
testImplementation 'org.apache.logging.log4j:log4j-api:[2.17,)'
testImplementation 'com.amazonaws:aws-java-sdk-sts:1.+'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:[5.6,)'
}
test {
useJUnitPlatform()
}
dokka {
outputFormat = "html"
outputDirectory = "$buildDir/javadoc"
}
task sourcesJar(type: Jar) {
from "src"
classifier = "sources"
}
task javadocJar(type: Jar) {
from dokka
classifier = "javadoc"
}
publishing {
publications {
maven(MavenPublication) {
artifactId = "awsssmchaosrunner"
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = "AWSSSMChaosRunner"
packaging = "jar"
url = "https://github.com/amzn/awsssmchaosrunner"
description = "Simple failure injection and chaos testing using AWS Systems Manager (SSM) SendCommand."
scm {
connection = "scm:[email protected]:amzn/awsssmchaosrunner.git"
developerConnection = "scm:[email protected]:amzn/awsssmchaosrunner.git"
url = "[email protected]:amzn/awsssmchaosrunner.git"
}
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
name = "Varun Jewalikar"
email = "[email protected]"
organization = "Prime Video"
organizationUrl = "https://github.com/amzn"
}
}
}
}
}
repositories {
maven {
url "https://aws.oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username ossrhUsername
password ossrhPassword
}
}
}
}
signing {
sign publishing.publications.maven
}