-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
66 lines (54 loc) · 1.77 KB
/
build.gradle.kts
File metadata and controls
66 lines (54 loc) · 1.77 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
`java-library`
id("com.github.johnrengelman.shadow") version "8.1.1"
// auto update dependencies with 'useLatestVersions' task
id("se.patrikerdes.use-latest-versions") version "0.2.18"
id("com.github.ben-manes.versions") version "0.51.0"
}
dependencies {
val jadxVersion = "1.5.2"
val isJadxSnapshot = jadxVersion.endsWith("-SNAPSHOT")
// use compile only scope to exclude jadx-core and its dependencies from result jar
compileOnly("io.github.skylot:jadx-core:$jadxVersion") {
isChanging = isJadxSnapshot
}
testImplementation("io.github.skylot:jadx-smali-input:$jadxVersion") {
isChanging = isJadxSnapshot
}
testImplementation("ch.qos.logback:logback-classic:1.5.13")
testImplementation("org.assertj:assertj-core:3.26.3")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.2")
implementation("org.slf4j:slf4j-api:2.0.16")
implementation("net.fornwall:jelf:0.9.0")
implementation("org.jetbrains:annotations:24.0.0")
implementation("com.formdev:flatlaf-extras:3.5.4")
}
repositories {
mavenLocal()
mavenCentral()
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/")
google()
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
version = System.getenv("VERSION") ?: "dev"
tasks {
withType(Test::class) {
useJUnitPlatform()
}
val shadowJar = withType(ShadowJar::class) {
archiveClassifier.set("") // remove '-all' suffix
}
// copy result jar into "build/dist" directory
register<Copy>("dist") {
group = "jadx-plugin"
dependsOn(shadowJar)
dependsOn(withType(Jar::class))
from(shadowJar)
into(layout.buildDirectory.dir("dist"))
}
}