This repository was archived by the owner on Oct 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
80 lines (68 loc) · 1.56 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
plugins {
java
`java-library`
`maven-publish`
id("com.github.hierynomus.license-base") version "0.16.1"
}
group = "io.github.pulsebeat02"
version = "v1.0.2"
repositories {
mavenCentral()
}
dependencies {
testImplementation("net.java.dev.jna:jna-platform:5.13.0")
testImplementation("net.java.dev.jna:jna:5.13.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
}
sourceSets {
main {
java {
srcDir("src/main/java")
}
resources {
srcDir("src/main/resources")
}
}
}
tasks {
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
publish {
dependsOn(clean)
dependsOn(build)
}
test {
useJUnitPlatform()
}
}
publishing {
repositories {
maven {
setUrl("https://pulsebeat02.jfrog.io/artifactory/minecraftmedialibrary/")
credentials {
username = ""
password = ""
}
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
subprojects {
apply(plugin = "com.github.hierynomus.license-base")
license {
header = rootProject.file("LICENSE")
encoding = "UTF-8"
mapping("java", "SLASHSTAR_STYLE")
includes(listOf("**/*.java", "**/*.kts"))
}
task<Wrapper>("wrapper") {
gradleVersion = "7.6"
}
}