-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (63 loc) · 2.32 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
group 'com.example'
version '0.0.1'
mainClassName = "com.example.ApplicationKt"
jar{
manifest {
attributes 'Main-Class': mainClassName
}
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
archiveName"my-school.jar"
}
group 'org.koin.sample.ktor'
version '1.0-SNAPSHOT'
tasks.create("stage") {
dependsOn("installDist")
}
sourceSets {
main.kotlin.srcDirs = main.java.srcDirs = ['src']
test.kotlin.srcDirs = test.java.srcDirs = ['test']
main.resources.srcDirs = ['resources']
test.resources.srcDirs = ['testresources']
}
repositories {
mavenLocal()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "io.ktor:ktor-server-netty:$ktor_version"
implementation "ch.qos.logback:logback-classic:$logback_version"
testImplementation "io.ktor:ktor-server-tests:$ktor_version"
// https://mvnrepository.com/artifact/io.ktor/ktor-gson
implementation group: 'io.ktor', name: 'ktor-gson', version: ktor_version
// database
implementation 'mysql:mysql-connector-java:8.0.11'
implementation "org.ktorm:ktorm-core:3.2.0"
implementation "org.ktorm:ktorm-support-mysql:3.2.0"
implementation "io.ktor:ktor-serialization:$ktor_version"
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.28'
implementation "org.postgresql:postgresql:42.2.5"
//auth
implementation "io.ktor:ktor-auth:$ktor_version"
implementation "io.ktor:ktor-auth-jwt:$ktor_version"
implementation group: 'org.jetbrains.exposed', name: 'exposed', version: '0.6.3'
implementation 'com.h2database:h2:2.0.206'
// Koin for Ktor
implementation "io.insert-koin:koin-ktor:$koin_version"
implementation 'com.transloadit.sdk:transloadit:0.3.0'
implementation "org.json:json:20211205"
implementation 'com.google.code.gson:gson:2.8.8'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation "com.squareup.okhttp3:logging-interceptor:4.9.1"
}