-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
40 lines (34 loc) · 1.01 KB
/
Copy pathbuild.gradle
File metadata and controls
40 lines (34 loc) · 1.01 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
plugins {
id 'base'
// see https://fabricmc.net/develop/ for new versions
id "net.fabricmc.fabric-loom" version '1.17-SNAPSHOT' apply false
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
id 'net.neoforged.moddev' version '2.0.141' apply false
}
apply plugin: 'idea'
idea {
module {
downloadSources = true
}
}
tasks.register('collectJars', Copy) {
def fabricJars = file("fabric/build/libs")
if (fabricJars.exists()) {
from(fabricJars) {
include '*.jar'
exclude '*-sources.jar', '*-javadoc.jar', '*-dev-shadow.jar'
}
}
def neoJars = file("neoforge_coremod/build/libs")
if (neoJars.exists()) {
from(neoJars) {
include '*.jar'
exclude '*-sources.jar', '*-javadoc.jar', '*-dev-shadow.jar'
rename { originalName ->
originalName.replace("_coremod", "")
}
}
}
into("$rootDir/build/libs")
}
build.finalizedBy(collectJars)