-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (58 loc) · 1.88 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
plugins {
id("org.jetbrains.kotlin.jvm") version "$kotlinVersion" apply false
}
allprojects {
apply plugin: "java"
apply plugin: "org.jetbrains.kotlin.jvm"
}
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"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:$coroutinesVersion"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:$serializationVersion"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:$serializationVersion"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-cbor-jvm:$serializationVersion"
}
}
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)
}