-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
46 lines (38 loc) · 924 Bytes
/
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
plugins {
id 'java'
}
group 'uk.betacraft'
version '2.0'
targetCompatibility = 5
sourceCompatibility = 5
repositories {
mavenCentral()
}
configurations {
library
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
library files('libs/javassist-java5.jar')
library files('libs/json-v20240303-SNAPSHOT.jar')
}
processResources {
filesMatching("releaseInfo.json") {
expand "version": "${project.version}-${new Date().format("dd.MM.yyyy")}"
}
}
jar {
from {
configurations.library.collect {
it.isDirectory() ? it : zipTree(it)
}
}
manifest {
attributes(
'Main-Class': 'uk.betacraft.legacyfix.LegacyFixLauncher',
'Premain-Class': 'uk.betacraft.legacyfix.LegacyFixAgent',
'Can-Redefine-Classes': 'true',
'Can-Retransform-Classes': 'true'
)
}
}