-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (45 loc) · 1002 Bytes
/
build.gradle
File metadata and controls
52 lines (45 loc) · 1002 Bytes
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
allprojects {
apply plugin: "java"
}
group = project.mavenGroup
version = project.modVersion
archivesBaseName = project.modid
subprojects {
repositories {
mavenCentral()
maven {
name = "MeshMC"
url = "https://maven.meshmc.net"
}
maven {
name = "Fabric"
url = "https://maven.fabricmc.net/"
}
}
dependencies {
implementation "net.meshmc:mesh-loader:$loaderVersion"
}
}
configurations {
embeddedLibs
embeddedJars
}
dependencies {
embeddedLibs(project(":core")) {
transitive = false
}
subprojects.forEach {
if(it.name.matches("v[0-9]+_[0-9]+_([0-9]+|x)")) embeddedJars(it) {
transitive = false
}
}
}
jar {
from {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations.embeddedLibs.collect {
it.isDirectory() ? it : zipTree(it)
}
}
from(configurations.embeddedJars)
}