-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (41 loc) · 1.2 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.0"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
google()
maven{
url=uri("https://repo1.maven.org/maven2/")
}
}
dependencies {
testImplementation(kotlin("test"))
implementation("org.eclipse.platform:org.eclipse.core.runtime:3.25.0")
implementation(files("libs/swt.jar"))
implementation(kotlin("reflect"))
implementation("com.github.javaparser:javaparser-symbol-solver-core:3.24.8")
implementation(files("libs/javardise-1.0.2.jar"))
// https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.jface
implementation("org.eclipse.platform:org.eclipse.jface:3.13.2")
}
configurations.all {
resolutionStrategy {
eachDependency {
if (this.requested.name.contains("\${osgi.platform}")) {
this.useTarget(
this.requested.toString()
.replace("\${osgi.platform}", "win32.win32.x86_64")
)
}
}
}
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}