forked from Patbox/StyledPlayerList
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (79 loc) · 1.52 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
plugins {
id 'eclipse'
id 'idea'
id 'java-library'
id 'net.neoforged.moddev' version '1.0.0'
id 'maven-publish'
}
base {
archivesName = project.mod_id
}
version = project.mod_version
group = project.maven_group
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
neoForge {
version = project.neo_version
parchment {
minecraftVersion = minecraft_version
mappingsVersion = parchment_version
}
runs {
client {
client()
programArguments.addAll '--username', 'Dev###'
}
server {
server()
programArgument '--nogui'
}
configureEach {
logLevel = org.slf4j.event.Level.WARN
}
}
mods {
"${project.mod_id}" {
sourceSet sourceSets.main
}
}
}
repositories {
maven { url = "https://maven.tterrag.com/" }
mavenLocal()
}
dependencies {
jarJar(implementation("com.lovetropics.lib:LTLib:$ltlib_version"))
jarJar(implementation("eu.pb4:placeholder-api-lt:$placeholder_api_version"))
}
tasks.withType(ProcessResources).configureEach {
var replaceProperties = [
mod_id: mod_id,
mod_version: mod_version,
]
inputs.properties replaceProperties
filesMatching(['META-INF/neoforge.mods.toml']) {
expand replaceProperties
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
idea {
module {
downloadSources = true
downloadJavadoc = true
}
}
publishing {
publications {
register('mavenJava', MavenPublication) {
from components.java
}
}
repositories {
if (project.hasProperty('mavendir')) {
maven { url mavendir }
} else {
mavenLocal()
}
}
}