-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
70 lines (57 loc) · 2.01 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
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
plugins {
base
application
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.ktlint.gradle)
}
application {
applicationDefaultJvmArgs = listOf(
"-Dcom.jagex.debug=${System.getProperty("com.jagex.debug")}",
"-Dcom.open592.disableDebugConsole=${System.getProperty("com.open592.disableDebugConsole")}",
"-Dcom.open592.debugConsoleLogToSystemStream=${
System.getProperty("com.open592.debugConsoleLogToSystemStream")
}",
"-Dcom.jagex.config=${System.getProperty("com.jagex.config")}",
"-Dcom.open592.launcherDirectoryOverride=${System.getProperty("com.open592.launcherDirectoryOverride")}",
"-Dcom.open592.fakeThawtePublicKey=${System.getProperty("com.open592.fakeThawtePublicKey")}",
"-Dcom.open592.fakeJagexPublicKey=${System.getProperty("com.open592.fakeJagexPublicKey")}",
)
mainClass.set("com.open592.appletviewer.cmd.Main")
}
kotlin {
jvmToolchain(17)
}
group = "com.open592"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(libs.guice)
implementation(libs.guice.assistedinject)
implementation(libs.kotlin.coroutines.core)
implementation(platform(libs.okhttp.bom))
implementation("com.squareup.okhttp3:okhttp")
testImplementation(kotlin("test"))
testImplementation(platform(libs.junit.bom))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation(libs.kotlin.coroutines.test)
testImplementation(libs.memoryfilesystem)
testImplementation(libs.mockk)
testImplementation("com.squareup.okhttp3:mockwebserver")
}
plugins.withType<KotlinPluginWrapper> {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
kotlin {
explicitApi()
}
}
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
version.set("0.50.0")
enableExperimentalRules.set(true)
}
tasks.test {
useJUnitPlatform()
}