-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
74 lines (68 loc) · 2.15 KB
/
build.gradle.kts
File metadata and controls
74 lines (68 loc) · 2.15 KB
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
plugins {
kotlin("jvm") version "2.0.0"
id("com.diffplug.spotless") version "8.3.0"
id("io.gitlab.arturbosch.detekt") version "1.23.8"
}
group = "fair"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
mavenLocal()
}
spotless {
kotlin {
target("src/**/*.kt")
ktlint()
.editorConfigOverride(
mapOf(
"insert_final_newline" to "true",
"indent_size" to "4",
"continuation_indent_size" to "4",
"ktlint_standard_no-wildcard-imports" to "disabled",
"ktlint_standard_no-unused-imports" to "enabled",
"ktlint_standard_import-ordering" to "enabled",
"max_line_length" to "120",
),
)
trimTrailingWhitespace()
endWithNewline()
}
kotlinGradle {
target("**/*.kts")
ktlint()
trimTrailingWhitespace()
endWithNewline()
}
detekt {
buildUponDefaultConfig = true
allRules = false // only default rules
ignoreFailures = true
}
}
dependencies {
testImplementation(kotlin("test"))
implementation(project(":fair.core"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
implementation("org.soot-oss:sootup.java.core:2.0.0-SNAPSHOT")
implementation("org.soot-oss:sootup.core:2.0.0-SNAPSHOT")
implementation("org.soot-oss:sootup.callgraph:2.0.0-SNAPSHOT")
implementation("org.soot-oss:sootup.java.bytecode.frontend:2.0.0-SNAPSHOT")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
testImplementation("io.mockk:mockk:1.13.10")
testImplementation("org.assertj:assertj-core:3.25.3")
testImplementation("org.yaml:snakeyaml:2.2")
}
tasks.register<JavaExec>("convert") {
group = "application"
description = "Run the FAIR CLI converter. Pass --args=\"ClassName [taint|typestate|constprop] [eager|lazy]\""
classpath = sourceSets.main.get().runtimeClasspath
mainClass.set("MainKt")
dependsOn("testClasses")
}
tasks.test {
useJUnitPlatform()
maxHeapSize = "2g"
}
kotlin {
jvmToolchain(17)
}