-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (42 loc) · 1.24 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
import net.fabricmc.loom.task.RemapJar
plugins {
id 'fabric-loom' version '0.2.0-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
archivesBaseName = "magicmod"
version = "1.14-SNAPSHOT-1.0.0"
def minecraftVersion = "19w08b"
def yarnMapping = "9"
def loaderVersion = "0.3.7.109"
minecraft {
}
dependencies {
minecraft "com.mojang:minecraft:${minecraftVersion}"
mappings "net.fabricmc:yarn:${minecraftVersion}.${yarnMapping}"
modCompile "net.fabricmc:fabric-loader:${loaderVersion}"
// Fabric API. This is technically optional, but you probably want it anyway.
modCompile "net.fabricmc:fabric:0.2.3.107"
//modCompile "prospector.modmenu:ModMenu:1.0.0-12"
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task apiJar(type: Jar) {
classifier = 'api'
group = archivesBaseName
from(sourceSets.main.output) {
include "co/runed/magicmod/api/**"
}
}
task remapApiJar(type: RemapJar, dependsOn: tasks.apiJar) {
group = archivesBaseName
jar = apiJar.outputs.files.find()
}
assemble {
dependsOn(apiJar)
}