-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
112 lines (99 loc) · 2.62 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
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
apply from: 'gradle/dependencies.gradle'
}
plugins {
id 'org.jetbrains.kotlin.jvm' version "1.4.10"
id 'idea'
id "io.gitlab.arturbosch.detekt" version '1.8.0'
id "maven"
id "com.github.johnrengelman.shadow" version "6.1.0"
id 'application'
}
group = 'com.github.sahlone'
version = '1.0.1'
repositories {
jcenter {
content {
includeGroup "org.jetbrains.kotlinx"
}
}
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
Map<String, String> libraries = rootProject.ext.libraries
dependencies {
// Use the Kotlin JDK 8 standard library
implementation libraries.kotlinStdlib
implementation libraries.kotlinReflect
//logging
implementation libraries.sl4j
implementation libraries.logstashLogbackEncoder
implementation libraries.logbackClassic
implementation libraries.jacksonCore
implementation libraries.jacksonDatabind
implementation libraries.jacksonJsr310
implementation libraries.jacksonKotlin
implementation libraries.config4k
implementation libraries.coroutines
// Use the Kotlin Junit runner which integrates the kotlin test library as well
implementation(libraries.kotlinTest) {
exclude group: 'io.arrow-kt'
}
//lint
detektPlugins libraries.detektKtLintFormat
testImplementation libraries.kotlinTest
testImplementation libraries.kotlinTestAsserts
testImplementation libraries.kotlinTestProperty
}
configurations.all {
exclude module: 'slf4j-log4j12'
}
test {
useJUnitPlatform()
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
allWarningsAsErrors = true
jvmTarget = "1.8"
}
}
detekt {
failFast = true
config = files("$projectDir/config/detekt/detekt.yml")
reports {
html.enabled = true
xml.enabled = true
}
}
tasks.detekt.jvmTarget = "1.8"
detekt {
failFast = true
config = files("$projectDir/config/detekt/detekt.yml")
reports {
html.enabled = true
xml.enabled = true
}
}
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}
}
tasks.build.dependsOn tasks.shadowJar
mainClassName = 'com.sahlone.mmq.Application'