-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
131 lines (117 loc) · 3.54 KB
/
build.gradle
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
plugins {
id "java-library"
id "maven-publish"
id "net.raphimc.class-token-replacer" version "1.1.3"
}
base {
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
group = project.maven_group ?: rootProject.maven_group
archivesName = project.name ?: rootProject.name
version = project.maven_version ?: rootProject.maven_version
}
repositories {
mavenCentral()
maven {
name = "ViaVersion"
url = "https://repo.viaversion.com"
}
maven {
name = "Lenni0451"
url = "https://maven.lenni0451.net/everything"
}
maven {
name = "OpenCollab Releases"
url = "https://repo.opencollab.dev/maven-releases/"
}
maven {
name = "OpenCollab Snapshots"
url = "https://repo.opencollab.dev/maven-snapshots/"
}
maven {
name = "Minecraft Libraries"
url = "https://libraries.minecraft.net"
content {
includeGroup "com.mojang"
}
}
maven {
name = "Jitpack"
url = "https://jitpack.io"
content {
includeGroup "com.github.Oryxel"
}
}
}
dependencies {
compileOnly "com.viaversion:viaversion-common:5.2.1"
compileOnly "com.viaversion:viabackwards-common:5.2.1"
compileOnly "com.viaversion:viarewind-common:4.0.5"
compileOnly "net.raphimc:ViaLegacy:3.0.7"
compileOnly "com.viaversion:viaaprilfools-common:4.0.0"
compileOnly "net.raphimc:ViaBedrock:0.0.14-SNAPSHOT"
compileOnly "org.cloudburstmc.netty:netty-transport-raknet:1.0.0.CR3-SNAPSHOT"
api "com.google.guava:guava:33.4.0-jre"
api "org.slf4j:slf4j-api:2.0.16"
}
sourceSets {
main {
classTokenReplacer {
property("\${version}", project.version)
}
}
}
java {
withSourcesJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.name ?: rootProject.name}" }
}
}
publishing {
repositories {
maven {
name = "Via"
url = "https://repo.viaversion.com/"
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
publications {
maven(MavenPublication) {
groupId = project.maven_group
artifactId = project.maven_name
version = project.maven_version
from components.java
pom {
name = "ViaLoader"
description = "Implementation of a ViaVersion based protocol translator platform"
url = "https://github.com/ViaVersion/ViaLoader"
licenses {
license {
name = "GPL-3.0 License"
url = "https://github.com/ViaVersion/ViaLoader/blob/main/LICENSE"
}
}
developers {
developer {
id = "RK_01"
}
developer {
id = "FlorianMichael"
name = "EnZaXD"
email = "[email protected]"
}
}
scm {
connection = "scm:git:git://github.com/ViaVersion/ViaLoader.git"
developerConnection = "scm:git:ssh://github.com/ViaVersion/ViaLoader.git"
url = "https://github.com/ViaVersion/ViaLoader.git"
}
}
}
}
}