This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
generated from LabyMod/1.16.5-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
75 lines (57 loc) · 1.93 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
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.viaversionaddon"
version = "2.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/")
maven("https://repo.viaversion.com/")
mavenLocal()
}
tasks.compileJava {
options.encoding = "UTF-8"
}
}
addon {
addonInfo {
namespace("viaversionaddon")
displayName("ViaVersion Addon")
author("rexlManu")
description("ViaVersion implemented clientside to switch easily your protocol version.")
version(System.getenv().getOrDefault("VERSION", "0.0.0"))
//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()
}