-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
107 lines (91 loc) · 2.42 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
buildscript {
ext {
ktor_version = '1.5.3-SNAPSHOT'
kotlin_version = "$kotlin_version"
serialization_version = '1.0.1'
gson_version = '2.8.6'
logback_version = '1.2.1'
koin_version = '2.1.0'
kotlin_logging = '1.7.10'
exposed = '0.21.1'
hikaricp_version = '3.4.2'
mysql_connector = '8.0.18'
flyway_core = '5.2.4'
flyway_feature = '1.0.0'
avro4k_version = '1.0.0'
// infrastructure
kafka_clients = '2.4.0'
kafka_avro_serializer = '5.3.0'
// tests
jupiter = '5.5.2'
mockito = '2.2.0'
kluent_version = '1.61'
// docker
shadow_version = '5.0.0'
}
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "com.github.jengelman.gradle.plugins:shadow:$shadow_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
apply plugin: 'application'
group 'com.quick.tor'
version '0.0.1'
mainClassName = "com.quick.tor.ApplicationMainKt"
repositories {
mavenLocal()
jcenter()
maven { url 'https://kotlin.bintray.com/ktor' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
allprojects {
repositories {
mavenLocal()
jcenter()
maven { url 'https://packages.confluent.io/maven/' }
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
}
sourceSets {
all {
languageSettings {
useExperimentalAnnotation('com.quick.tor.RequiresTransactionContext')
useExperimentalAnnotation('com.quick.tor.OptInAnnotation')
}
}
main.kotlin.srcDirs = [ 'src' ]
main.resources.srcDirs = [ 'resources' ]
}
jar {
manifest {
attributes 'Main-Class': 'com.quick.tor.ApplicationMainKt'
attributes 'Start-Class': 'com.quick.tor.ApplicationMainKt'
}
}
shadowJar {
archiveBaseName = 'quicktor'
archiveClassifier = ''
archiveVersion = ''
}