-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
43 lines (34 loc) · 1.29 KB
/
build.gradle.kts
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "1.3.61"
id("com.github.johnrengelman.shadow") version "5.1.0"
// Apply the application plugin to add support for building a CLI application.
application
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.github.ajalt:clikt:2.7.1")
implementation("com.hltech:judge-d-contract-publisher-core:0.1.6")
// Use the Kotlin test library.
testImplementation("org.jetbrains.kotlin:kotlin-test")
// Use the Kotlin JUnit integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
}
application {
// Define the main class for the application.
mainClassName = "com.hltech.judged.contracts.publisher.standalone.PublishContractsKt"
}
tasks.withType<ShadowJar>() {
manifest {
attributes["Main-Class"] = application.mainClassName
}
}