-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (59 loc) · 1.73 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
plugins {
`java-library`
id("org.jetbrains.dokka") version "1.+"
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin") version "1.0.+"
id("io.freefair.lombok") version "+"
}
group = "enterprises.stardust"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
maven("https://jitpack.io") { // temporary
content {
includeGroup("com.github.stardust-enterprises")
}
}
}
dependencies {
implementation("com.github.stardust-enterprises", "interstellair", "fdf3c22d66")
implementation("net.java.dev.jna:jna:5.13.0")
implementation("org.jetbrains:annotations:24.0.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
}
java {
withSourcesJar()
withJavadocJar()
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
tasks {
getByName<Test>("test") {
useJUnitPlatform()
}
val apiJar = create("apiJar", Jar::class.java) {
archiveClassifier.set("api")
from(sourceSets["main"].output)
exclude("enterprises/stardust/plat4j/impl")
exclude("enterprises/stardust/plat4j/impl/**/*")
manifest.attributes(
"Specification-Title" to project.name,
"Specification-Version" to "1",
"Specification-Vendor" to "Stardust Enterprises",
)
}
jar {
manifest.attributes += apiJar.manifest.attributes
manifest.attributes(
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
"Implementation-Vendor" to "Stardust Enterprises",
)
}
}
artifacts {
archives(tasks["apiJar"])
}