-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
72 lines (55 loc) · 1.77 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
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.44")
}
}
plugins {
id("java-library")
}
group = "de.unordentlich"
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("streamchatplus")
displayName("StreamChat+")
iconUrl("https://i.imgur.com/rykISU4.png", project(":core"))
author("unordentlich")
description("Never tab out of your full screen again! StreamChat+ shows you your Twitch chat in Minecraft.")
version("1.0.0")
}
internalRelease()
}