-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
101 lines (75 loc) · 3.4 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
val kotlinVersion = "2.1.10"
plugins {
kotlin("jvm") version "2.1.10"
id("java-library")
id("com.gradleup.shadow") version "9.0.0-beta8"
}
group = "org.jetbrains.kotlin"
version = "2.1.10"
repositories {
mavenCentral()
}
tasks {
named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
exclude("META-INF/maven/org.jetbrains/*/pom.xml")
exclude("META-INF/maven/org.jetbrains/*/pom.properties")
exclude("sun/misc/Unsafe.class")
exclude("com/google/common/**")
exclude("org/jdom/**")
exclude("kotlin/**")
exclude("org/jetbrains/annotations/Nls**")
exclude("android/**")
exclude("dalvik/**")
exclude("org/lsposed/hiddenapibypass/**")
//If `ktfmt` is imported, please uncomment the following code
// exclude("org/checkerframework/**")
// exclude("com/google/errorprone/**")
// exclude("com/google/thirdparty/**")
dependencies {
exclude(dependency("org.jetbrains.kotlin:kotlin-reflect:1.6.10"))
exclude(dependency("org.jetbrains.intellij.deps:trove4j:1.0.20200330"))
exclude(dependency("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4"))
exclude(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.0"))
exclude(dependency("org.jetbrains.kotlin:kotlin-script-runtime:2.1.0"))
exclude(dependency("io.github.itsaky:nb-javac-android:17.0.0.3"))
exclude(dependency("org.jetbrains:annotations:26.0.1"))
// If `ktfmt` is imported, please uncomment the following code
// exclude(dependency("com.google.googlejavaformat:google-java-format:1.23.0"))
// exclude(dependency("com.google.guava:guava:32.0.0-jre"))
// exclude(dependency("net.java.dev.jna:jna:4.2.2"))
// exclude(dependency("org.jetbrains.kotlin:kotlin-test:2.0.0"))
// exclude(dependency("org.checkerframework:checker-qual:3.33.0"))
// exclude(dependency("com.google.j2objc:j2objc-annotations:2.8"))
// exclude(dependency("com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava"))
// exclude(dependency("com.google.guava:failureaccess:1.0.1"))
// exclude(dependency("com.google.errorprone:error_prone_annotations:2.18.0"))
// exclude(dependency("com.google.code.findbugs:jsr305:3.0.2"))
// exclude(dependency("org.jspecify:jspecify:1.0.0"))
// exclude(dependency("com.google.errorprone:error_prone_annotations:2.28.0"))
// exclude(dependency("com.google.auto.value:auto-value-annotations:1.9"))
// exclude(dependency("com.google.auto.service:auto-service-annotations:1.0.1"))
}
archiveFileName.set("kotlin-compiler-$kotlinVersion.jar")
}
assemble {
dependsOn(shadowJar)
}
build {
dependsOn(shadowJar)
}
}
dependencies {
compileOnly(files("libs/android-35.jar"))
compileOnly(files("libs/hiddenapibypass-6.1.jar"))
implementation("io.github.itsaky:nb-javac-android:17.0.0.3")
implementation("org.jetbrains.kotlin:kotlin-compiler:$kotlinVersion")
implementation("org.jetbrains:annotations:26.0.1")
// If you want to import `ktfmt` then please uncomment the following code
// implementation("com.facebook:ktfmt:0.54")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}