-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (59 loc) · 2 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
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
}
}
plugins {
id 'java'
id 'application'
id 'distribution'
id "io.gitlab.arturbosch.detekt" version "1.19.0"
id "org.jlleitschuh.gradle.ktlint" version "10.2.1"
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
mainClassName = "ru.ac.uniyar.CrowdfundingKt"
project.version = "${project_version}"
repositories {
mavenCentral()
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'kotlin'
compileKotlin.kotlinOptions.jvmTarget = "11"
compileTestKotlin.kotlinOptions.jvmTarget = "11"
compileTestKotlin.kotlinOptions.freeCompilerArgs += "-Xjvm-default=all"
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
test {
useJUnitPlatform()
}
dependencies {
implementation "com.auth0:java-jwt:4.2.1"
implementation "org.http4k:http4k-client-okhttp:4.33.1.0"
implementation "org.http4k:http4k-contract:4.33.1.0"
implementation "org.http4k:http4k-core:4.33.1.0"
implementation "org.http4k:http4k-format-jackson:4.33.1.0"
implementation "org.http4k:http4k-server-undertow:4.33.1.0"
implementation "org.http4k:http4k-template-pebble:4.33.1.0"
implementation 'org.slf4j:slf4j-api:2.0.3'
implementation 'org.slf4j:slf4j-simple:2.0.3'
testImplementation "org.http4k:http4k-testing-kotest:4.33.1.0"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.7.20'
}
detekt {
buildUponDefaultConfig = true // preconfigure defaults
config.setFrom("$projectDir/detekt.yml")
// point to your custom config defining rules to run, overwriting default behavior
}
jar {
manifest {
attributes 'Main-Class': 'ru.ac.uniyar.CrowdfundingKt'
}
}