-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
84 lines (60 loc) · 1.88 KB
/
build.gradle
File metadata and controls
84 lines (60 loc) · 1.88 KB
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
plugins {
id 'java'
id 'maven-publish'
}
group = 'pt.supercrafting'
version = System.getenv("VERSION") ?: '1.0-SNAPSHOT'
compileJava.options.encoding = 'UTF-8'
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(25))
}
repositories {
mavenCentral()
maven {
name = "hytale-release"
url = uri("https://maven.hytale.com/release")
}
maven {
name = "hytale-pre-release"
url = uri("https://maven.hytale.com/pre-release")
}
}
dependencies {
implementation 'net.kyori:adventure-api:4.26.1'
implementation 'net.kyori:adventure-text-minimessage:4.26.1'
implementation 'net.kyori:adventure-text-serializer-plain:4.26.1'
compileOnly 'com.hypixel.hytale:Server:2026.01.24-6e2d4fc36'
testImplementation 'com.hypixel.hytale:Server:2026.01.24-6e2d4fc36'
testImplementation platform('org.junit:junit-bom:5.10.0') // Todo: One day...
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
test {
useJUnitPlatform()
failOnNoDiscoveredTests = false
}
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = 'hytale-component'
version = project.version
from components.java
}
}
boolean CI = System.getenv("CI") != null
if(CI) {
repositories {
maven {
name = "GitHubPackages"
credentials {
username System.getenv('GITHUB_USERNAME')
password System.getenv('GITHUB_TOKEN')
}
String owner = System.getenv('GITHUB_USERNAME')
String repository = System.getenv('GITHUB_REPOSITORY').split('/')[1]
url = "https://maven.pkg.github.com/${owner}/${repository}"
}
}
}
}