generated from jadx-decompiler/jadx-example-plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
78 lines (64 loc) · 2.08 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
plugins {
`java-library`
id("com.github.johnrengelman.shadow") version "8.1.1"
id("se.patrikerdes.use-latest-versions") version "0.2.18"
id("com.github.ben-manes.versions") version "0.50.0"
}
dependencies {
// Use implementation instead of compileOnly for jadx-core
implementation("io.github.skylot:jadx-core:1.5.1-SNAPSHOT") {
isChanging = true
}
// HTTP and JSON deps
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.0")
// Logging
implementation("org.slf4j:slf4j-api:1.7.32")
implementation("ch.qos.logback:logback-classic:1.4.14")
// Markdown parser
implementation("com.vladsch.flexmark:flexmark:0.64.8")
implementation("com.vladsch.flexmark:flexmark-util:0.64.8")
implementation("com.vladsch.flexmark:flexmark-ext-tables:0.64.8")
// Syntax highlighting
implementation("com.fifesoft:rsyntaxtextarea:3.3.4")
// Testing
testImplementation("org.assertj:assertj-core:3.24.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
testImplementation("io.github.skylot:jadx-smali-input:1.5.1-SNAPSHOT") {
isChanging = true
}
}
repositories {
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> {
useJUnitPlatform()
}
shadowJar {
// Include all dependencies
archiveClassifier.set("")
mergeServiceFiles()
configurations = listOf(project.configurations.runtimeClasspath.get())
}
// Make shadowJar the default jar task
named<Jar>("jar") {
enabled = false
}
build {
dependsOn(shadowJar)
}
register<Copy>("dist") {
dependsOn(shadowJar)
from(shadowJar)
into(layout.buildDirectory.dir("dist"))
}
}