-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (47 loc) · 1.38 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
plugins {
id("io.freefair.lombok") version "8.4" apply false
}
allprojects {
apply(plugin = "java-library")
apply(plugin = "io.freefair.lombok")
repositories {
mavenCentral()
}
dependencies {
val implementation by configurations
implementation("org.jetbrains:annotations:24.0.1")
implementation("org.slf4j:slf4j-api:2.0.9")
implementation("org.ow2.asm:asm-tree:9.6")
}
configure<JavaPluginExtension> {
withJavadocJar()
withSourcesJar()
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
}
group = "enterprises.stardust"
version = "0.0.1"
subprojects {
group = rootProject.group.toString() + "." + rootProject.name
version = version ?: rootProject.version.toString()
}
dependencies {
val api by configurations
api(project(":jsandbox-api"))
}
tasks {
getByName<Jar>("jar") {
val pkg = "${project.group}.${project.name}.impl".replace('.', '/')
manifest.attributes(
"$pkg/",
"Specification-Title" to "JSandbox API",
"Specification-Version" to "1",
"Specification-Vendor" to "Stardust Enterprises",
"Implementation-Title" to "JSandbox",
"Implementation-Version" to project.version.toString(),
"Implementation-Vendor" to "Stardust Enterprises"
)
}
}