-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
44 lines (37 loc) · 1.1 KB
/
build.gradle
File metadata and controls
44 lines (37 loc) · 1.1 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
plugins {
id 'java'
}
group = 'org.hytale.miningplus'
version = '1.2.2-release-2026.03.26-89796e57b'
java {
sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_25
}
repositories {
mavenCentral()
maven { url 'https://maven.hytale.com/release' }
}
dependencies {
compileOnly 'com.hypixel.hytale:Server:2026.03.26-89796e57b'
compileOnly 'com.google.code.gson:gson:2.10.1'
}
jar {
archiveBaseName = 'MiningPlus'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Implementation-Title': 'MiningPlus',
'Implementation-Version': version
)
}
}
def localProps = new Properties()
def localPropsFile = rootProject.file('local.properties')
if (localPropsFile.exists()) localProps.load(localPropsFile.newInputStream())
def serverDir = localProps.getProperty('hytale.serverDir', '')
tasks.register('deployJar', Copy) {
dependsOn jar
from jar.archiveFile
into "${serverDir}/Server/mods"
doLast { println "Deployed ${jar.archiveFileName.get()} to ${serverDir}/Server/mods" }
}