forked from MinecraftMediaLibrary/EzMediaCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
80 lines (70 loc) · 2.07 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
group = "io.github.pulsebeat02"
version = "1.0.0"
plugins {
java
`java-library`
id("com.github.hierynomus.license-base") version "0.16.1"
id("org.ajoberstar.grgit") version "4.1.1"
}
subprojects {
apply {
setOf(
"java",
"java-library",
"com.github.hierynomus.license-base"
).forEach {
plugin(it)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
}
sourceSets {
main {
java.srcDir("src/main/java")
resources.srcDir("src/main/resources")
}
}
license {
header = rootProject.file("header.txt")
encoding = "UTF-8"
mapping("java", "SLASHSTAR_STYLE")
includes(setOf("**/*.java", "**/*.kts"))
}
dependencies {
setOf("org.jetbrains:annotations:23.0.0").forEach {
compileOnly(it)
testImplementation(it)
}
}
repositories {
mavenCentral()
mavenLocal()
setOf(
"https://repo.maven.apache.org/maven2/",
"https://papermc.io/repo/repository/maven-public/",
"https://hub.spigotmc.org/nexus/content/repositories/snapshots/",
"https://oss.sonatype.org/content/repositories/snapshots/",
"https://oss.sonatype.org/content/repositories/central/",
"https://libraries.minecraft.net/",
"https://jitpack.io/",
"https://repo.codemc.org/repository/maven-public/",
"https://m2.dv8tion.net/releases/",
"https://repo.vshnv.tech/releases/",
"https://repo.mattstudios.me/artifactory/public/",
"https://pulsebeat02.jfrog.io/artifactory/pulse-gradle-release-local/",
"https://pulsebeat02.jfrog.io/artifactory/pulse-libs-release-local/"
).forEach {
maven(it)
}
}
task<Wrapper>("wrapper") {
gradleVersion = "7.3.3"
}
}