forked from RaphiMC/ViaBedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (70 loc) · 1.98 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
plugins {
id "java-library"
id "maven-publish"
id "net.kyori.blossom" version "1.3.1"
}
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
group = project.maven_group
archivesBaseName = project.maven_name
version = project.maven_version
configurations {
testImplementation.extendsFrom compileOnly
}
repositories {
mavenCentral()
maven {
name = "ViaVersion"
url "https://repo.viaversion.com"
}
}
dependencies {
compileOnly "com.viaversion:viaversion:4.6.0-1.19.4-pre3-SNAPSHOT"
compileOnly "org.yaml:snakeyaml:2.0"
compileOnly "com.google.guava:guava:31.1-jre"
compileOnly "io.netty:netty-handler:4.1.91.Final"
compileOnly "com.google.code.gson:gson:2.10.1"
api("io.netty:netty-codec-http:4.1.90.Final") {
transitive = false
}
api "io.jsonwebtoken:jjwt-impl:0.11.5"
api("io.jsonwebtoken:jjwt-gson:0.11.5") {
exclude group: "com.google.code.gson", module: "gson"
}
api("net.lenni0451.mcstructs-bedrock:text:1.0.0") {
exclude group: "com.google.code.gson", module: "gson"
}
api "com.vdurmont:semver4j:3.1.0"
}
blossom {
replaceToken("\${version}", project.version, "src/main/java/net/raphimc/viabedrock/ViaBedrock.java")
}
java {
withSourcesJar()
withJavadocJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}
publishing {
repositories {
maven {
name = "reposilite"
url = "https://maven.lenni0451.net/snapshots"
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
publications {
maven(MavenPublication) {
groupId = project.maven_group
artifactId = project.maven_name
version = project.maven_version
from components.java
}
}
}