-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
77 lines (63 loc) · 2.12 KB
/
build.gradle.kts
File metadata and controls
77 lines (63 loc) · 2.12 KB
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenCentral()
jcenter()
}
// This plugin dependency is unused in this example project and is
// listed here for demonstrating dependency updates only.
dependencies {
classpath("com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.+")
}
configurations.classpath {
resolutionStrategy.activateDependencyLocking()
}
}
apply(plugin = "com.jfrog.bintray")
plugins {
id("org.jetbrains.kotlin.jvm") version "1.3.72"
java
application
}
group = "com.github.peter-evans"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
val kotlinVersion = "1.3.+"
implementation(kotlin("stdlib-jdk8", kotlinVersion))
val dropwizardVersion = "2.0.+"
implementation("io.dropwizard:dropwizard-core:$dropwizardVersion")
implementation("io.dropwizard:dropwizard-testing:$dropwizardVersion")
val junitVersion = "5.6.+"
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
// The following dependencies are unused in this example project and are
// listed here for demonstrating dependency updates only.
val awsVersion = "2.11.+"
implementation("software.amazon.awssdk:dynamodb:$awsVersion")
implementation("software.amazon.awssdk:sqs:$awsVersion")
val coroutineVersion = "1.3.+"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:$coroutineVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutineVersion")
testImplementation("io.mockk:mockk:1.+")
}
dependencyLocking {
lockAllConfigurations()
}
application {
mainClassName = "com.github.peterevans.exampleapi.ExampleApiApplication"
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
"test"(Test::class) {
useJUnitPlatform()
}
named<JavaExec>("run") {
args("server", "./config/local.yml")
}
}