-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (45 loc) · 1 KB
/
Copy pathbuild.gradle
File metadata and controls
55 lines (45 loc) · 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
45
46
47
48
49
50
51
52
53
54
55
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'pitheguy.schemconvert'
version = '1.2.6'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.guava:guava:latest.release'
implementation 'net.sf.jopt-simple:jopt-simple:5.0.4'
implementation 'com.google.code.gson:gson:2.10.1'
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
}
}
application {
mainClass = 'pitheguy.schemconvert.Main'
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": inputs.properties.version
}
}
jar {
manifest {
attributes(
'Main-Class': 'pitheguy.schemconvert.Main'
)
}
}
shadowJar {
archiveClassifier.set('all') // Ensures all dependencies are included
}