-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
83 lines (72 loc) · 1.71 KB
/
build.gradle
File metadata and controls
83 lines (72 loc) · 1.71 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
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
plugins {
id "net.neoforged.moddev.legacyforge"
id "maven-publish"
id 'com.palantir.git-version' version '3.1.0'
}
version = gitVersion()
group = mod_group
archivesBaseName = mod_id
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://maven.latvian.dev/releases'
content {
includeGroup 'dev.latvian.mods'
includeGroup 'dev.latvian.apps'
}
}
maven {
url 'https://maven.architectury.dev/'
content { includeGroup 'dev.architectury' }
}
maven {
url 'https://api.modrinth.com/maven'
}
}
dependencies {
compileOnly 'org.jetbrains:annotations:24.1.0'
// KubeJS - soft dependency for scripting integration
compileOnly 'dev.latvian.mods:kubejs-forge:2001.6.5-build.16'
modImplementation 'maven.modrinth:minecraft-sqlite-jdbc:3.51.1.0+2025-12-01'
}
legacyForge {
version = "${minecraft_version}-${forge_version}"
mods {
"${mod_id}" {
sourceSet sourceSets.main
}
}
runs {
configureEach {
gameDirectory = project.file('run')
}
client {
client()
}
server {
server()
}
}
}
processResources {
var expansions = [
"mod_id": mod_id,
"mod_name": mod_name,
"mod_version": version,
"minecraft_version_range": minecraft_version_range,
"forge_version_range": forge_version_range
]
inputs.properties(expansions)
filesMatching("META-INF/mods.toml") {
expand expansions
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}