-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
86 lines (75 loc) · 3.09 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
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.2.6.RELEASE"
id("io.spring.dependency-management") version "1.0.9.RELEASE"
kotlin("jvm") version "1.4.0"
kotlin("plugin.spring") version "1.4.0"
application
id("antlr")
id("com.github.johnrengelman.shadow") version "6.0.0"
}
group = "io.github.t45k"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("commons-codec:commons-codec:1.14")
implementation("com.auth0:java-jwt:3.10.2")
implementation("com.google.code.gson:gson:2.8.6")
implementation(fileTree("./lib/github-api-1.113-SNAPSHOT.jar"))
implementation(fileTree("./lib/indexbased.SearchManager.jar"))
implementation(fileTree("./lib/kotlin-antlr.jar"))
implementation(fileTree("./lib/python3-antlr.jar"))
implementation(fileTree("./lib/cpp-antlr.jar"))
implementation("org.bouncycastle:bcprov-jdk15on:1.65")
implementation("org.eclipse.jgit:org.eclipse.jgit:5.7.0.202003110725-r")
implementation("io.reactivex.rxjava3:rxkotlin:3.0.0")
implementation("com.github.kusumotolab:sdl4j:0.4.0")
implementation("org.jgrapht:jgrapht-core:1.4.0")
implementation("org.eclipse.jdt:org.eclipse.jdt.core:3.22.0")
implementation("com.moandjiezana.toml:toml4j:0.7.2")
// Necessary for github-api
implementation("org.apache.commons:commons-lang3:3.9")
implementation("com.fasterxml.jackson.core:jackson-databind:2.10.2")
implementation("commons-io:commons-io:2.4")
implementation("com.squareup.okio:okio:2.5.0")
implementation("com.squareup.okhttp3:okhttp:4.4.1")
implementation("com.squareup.okhttp3:okhttp-urlconnection:3.12.3")
implementation("com.squareup.okhttp:okhttp-urlconnection:2.7.5")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("io.mockk:mockk:1.10.0")
antlr("org.antlr:antlr4:4.8")
}
/*
tasks.withType<Test> {
useJUnitPlatform()
}
*/
application {
mainClassName = "io.github.t45k.clione.ClioneApplicationKt"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
val standalone by tasks.registering(JavaExec::class) {
main = "io.github.t45k.clione.StandAloneEntryPointKt"
classpath = sourceSets.getByName("main").runtimeClasspath
if (project.hasProperty("args")) {
args = (project.property("args") as String).split(Regex("\\s+"))
}
}