-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
88 lines (76 loc) · 2.42 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
81
82
83
84
85
86
87
88
plugins {
id("java-library")
id("maven-publish")
id("io.github.goooler.shadow") version "8.1.7"
}
allprojects {
group = "de.oliver"
version = "0.0.13"
description = "Simple, lightweight and fast library for minecraft internals"
repositories {
mavenLocal()
mavenCentral()
maven(url = "https://repo.papermc.io/repository/maven-public/")
maven(url = "https://repo.fancyplugins.de/releases")
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:${findProperty("minecraftVersion")}-R0.1-SNAPSHOT")
implementation(project(":api"))
implementation(project(":factories"))
implementation(project(":implementations:1_21_4"))
implementation(project(":implementations:1_21_3"))
implementation(project(":implementations:1_20_6"))
implementation("de.oliver.FancyAnalytics:logger:${findProperty("fancyLoggerVersion")}")
}
tasks {
shadowJar {
archiveClassifier.set("")
configurations = listOf(project.configurations["runtimeClasspath"])
dependencies {
include(dependency("de.oliver:.*"))
}
}
publishing {
repositories {
maven {
name = "fancypluginsReleases"
url = uri("https://repo.fancyplugins.de/releases")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
}
}
maven {
name = "fancypluginsSnapshots"
url = uri("https://repo.fancyplugins.de/snapshots")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("shadow") {
groupId = project.group.toString()
version = project.version.toString()
artifact(shadowJar)
}
}
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release = 21
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}