-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
108 lines (92 loc) · 3.1 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
buildscript {
repositories {
flatDir {
// to use local builds
dirs 'lib'
}
}
dependencies {
classpath "com.github.puzzle:puzzleDecompGradle:1.0-SNAPSHOT"
}
}
plugins {
id "com.gradleup.shadow" version "8.3.3"
}
group = 'com.github.puzzle'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "https://maven.google.com/" }
maven { url "https://libraries.minecraft.net" }
maven {
name "neoforged"
url "https://maven.neoforged.net/release"
}
}
apply plugin: "java"
apply plugin: "puzzle-crcp-gradle"
dependencies {
//comment out if using server
// implementation "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion"
// implementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"
// implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
///////
implementation("com.google.guava:guava:$guavaVersion")
// {
// exclude (group: "com.google.common" , module: "google-collect")
// }
implementation("com.google.code.gson:gson:$gsonVersion")
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
// implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion"
// implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation "com.github.Hangman:TuningFork:$tuningFork"
implementation "io.netty:netty-all:4.1.24.Final"
implementation("org.reflections:reflections:$reflectionsVersion")
implementation("com.mojang:brigadier:1.0.18")
implementation 'org.apache.commons:commons-configuration2:2.11.0'
implementation 'commons-beanutils:commons-beanutils:1.9.4'
implementation "net.neoforged:bus:8.0.2"
implementation("org.apache.logging.log4j:log4j-api:$log4jVersion")
implementation("org.apache.logging.log4j:log4j-core:$log4jVersion")
implementation("org.apache.logging.log4j:log4j-slf4j2-impl:$log4jVersion")
implementation 'org.jline:jline:3.25.0'
implementation 'org.fusesource.jansi:jansi:2.2.0'
implementation("org.hjson:hjson:$hjsonVersion")
implementation('org.jetbrains:annotations:24.0.0')
implementation("net.sf.jopt-simple:jopt-simple:$joptSimpleVersion")
}
javadoc {
}
tasks.register("copyToLib", Copy) {
from shadowJar
from configurations.shadow
into("$buildDir/output/lib")
}
sourceSets {
main {
java {
srcDirs "src/main/java"
srcDirs "cosmicReach/src/main/java"
}
resources {
srcDirs "src/main/resources"
srcDirs "cosmicReach/src/main/resources"
}
}
}
jar {
manifest {
attributes("Implementation-Title": project.name,
"Implementation-Version": version,
"Main-Class": "com.github.puzzle.paradox.loader.launch.Piece",
"Multi-Release": true);
}
}
processResources() {
duplicatesStrategy = 'EXCLUDE'
}
test {
useJUnitPlatform()
}