-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
50 lines (41 loc) · 1.26 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.20"
kotlin("plugin.serialization") version "1.8.20"
}
group = "com.ladsers.passtable"
version = "24.3.0"
repositories {
mavenCentral()
}
dependencies {
implementation("org.bouncycastle:bcpkix-jdk15on:1.66")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Jar>() {
archiveFileName.set("passtable-lib-${project.version}.jar")
from(sourceSets.main.get().allSource)
manifest {
attributes(
mapOf(
"Implementation-Title" to project.name,
"Kotlin-Version" to kotlin.coreLibrariesVersion,
"Implementation-Version" to project.version,
"Build-Jdk" to java.targetCompatibility
)
)
}
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") && it.name.contains("bcp") }
.map { zipTree(it) }
}) {
exclude("META-INF/*.SF")
exclude("META-INF/*.DSA")
exclude("META-INF/*.RSA")
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}