-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
62 lines (51 loc) · 1.48 KB
/
build.gradle.kts
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "de.friday"
version = "1.0.0-SNAPSHOT"
plugins {
kotlin("jvm") version "1.3.21"
id("java-gradle-plugin")
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC14"
id("com.github.ben-manes.versions") version "0.21.0"
id("com.github.johnrengelman.shadow") version "5.0.0"
}
repositories {
jcenter()
}
dependencies {
detekt("io.gitlab.arturbosch.detekt:detekt-formatting:1.0.0-RC14")
detekt("io.gitlab.arturbosch.detekt:detekt-cli:1.0.0-RC14")
implementation(kotlin("stdlib", "1.3.21"))
implementation(kotlin("reflect", "1.3.21"))
implementation("com.amazonaws:aws-java-sdk-sqs:1.11.519")
implementation("org.elasticmq:elasticmq-rest-sqs_2.12:0.14.6")
testImplementation("io.kotlintest:kotlintest-runner-junit5:3.3.1")
}
gradlePlugin {
plugins {
create("elasticmq") {
id = "de.friday.elasticmq"
implementationClass = "de.friday.gradle.elasticmq.ElasticMqPlugin"
}
}
}
detekt {
failFast = true
input = files("$projectDir/src")
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.allWarningsAsErrors = true
}
tasks.getByName("check") {
dependsOn(tasks.withType<Detekt>())
}
tasks.withType<ShadowJar> {
mergeServiceFiles("*.conf")
}
apply {
from("build-it.gradle.kts")
}