generated from LabyMod/addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (56 loc) · 1.9 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
buildscript {
repositories {
var bearerToken = System.getenv("LABYMOD_BEARER_TOKEN")
if (bearerToken == null && project.hasProperty("net.labymod.distributor.bearer-token")) {
bearerToken = project.property("net.labymod.distributor.bearer-token").toString()
}
maven("https://dist.labymod.net/api/v1/maven/release/") {
name = "LabyMod Distributor"
authentication {
create<HttpHeaderAuthentication>("header")
}
credentials(HttpHeaderCredentials::class) {
name = "Authorization"
value = "Bearer $bearerToken"
}
}
maven("https://repo.spongepowered.org/repository/maven-public") {
name = "SpongePowered Repository"
}
mavenLocal()
}
dependencies {
classpath("net.labymod.gradle", "addon", "0.2.51")
}
}
plugins {
id("java-library")
}
group = "de.rexlmanu.betterchat"
version = "1.0.0"
plugins.apply("net.labymod.gradle.addon")
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
subprojects {
plugins.apply("java-library")
plugins.apply("net.labymod.gradle.addon")
repositories {
maven("https://libraries.minecraft.net/")
maven("https://repo.spongepowered.org/repository/maven-public/")
mavenLocal()
}
tasks.compileJava {
options.encoding = "UTF-8"
}
}
addon {
addonInfo {
namespace("betterchat")
displayName("BetterChat Addon")
author("rexlManu")
description("Prevent chat history clearing, hide message signature and annoying warnings on join.")
version(System.getenv().getOrDefault("VERSION", project.version.toString()))
//if you want to add dependencies, go to the build.gradle.kts in the core or api module
//add take a look in the dependencies block
}
snapshotRelease()
}