-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (36 loc) · 1.33 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
plugins {
id 'fabric-loom' version '0.2.2-SNAPSHOT'
id "com.matthewprenger.cursegradle" version "1.2.0"
id "maven-publish"
}
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
group = "com.github.NerdHubMC"
archivesBaseName = "Sticky-Weeds"
version = System.getenv("TRAVIS_TAG") ?: project.mod_version
minecraft {
}
repositories {
maven { url = "https://oss.sonatype.org/content/repositories/releases/" }
}
dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}"
mappings "net.fabricmc:yarn:${yarn_mappings}"
modCompile "net.fabricmc:fabric-loader:${loader_version}"
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
modCompile "net.fabricmc:fabric:${project.fabric_version}"
}
apply from: "https://raw.githubusercontent.com/NerdHubMC/Gradle-Scripts/master/scripts/fabric/basic_project.gradle"
processResources {
// this will ensure that this task is redone when there"s a change
inputs.property "version", project.version
// replace stuff in fabric.mod.json, nothing else
from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
// add mod metadata
expand "version": project.version
}
// copy everything else, that"s not the fabric.mod.json
from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
}