forked from natanfudge/Not-Enough-Crashes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (47 loc) · 1.68 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
plugins {
id "architectury-plugin" version "3.1-SNAPSHOT"
id "dev.architectury.loom" version "0.7.2-SNAPSHOT" apply false
// id "com.github.fudge.forgedflowerloom" version "2.0.0" apply false
id 'maven-publish'
id 'com.matthewprenger.cursegradle'
id "com.modrinth.minotaur" version "1.2.1" apply false
}
architectury {
minecraft = rootProject.minecraft_version
}
subprojects {
apply plugin: "dev.architectury.loom"
// apply plugin: "com.github.fudge.forgedflowerloom"
apply plugin: 'maven-publish'
apply plugin: 'com.matthewprenger.cursegradle'
apply plugin: "com.modrinth.minotaur"
dependencies {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
// The following line declares the mojmap mappings, you may use other mappings as well
mappings "net.fabricmc:yarn:${rootProject.yarn_mappings}:v2"
// The following line declares the yarn mappings you may select this one as well.
// mappings "net.fabricmc:yarn:1.16.5+build.9:v2"
}
}
allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
archivesBaseName = rootProject.archives_base_name
ext.total_version = "$mod_version+$minecraft_version"
version = ext.total_version
group = rootProject.maven_group
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
// Minecraft 1.17 (21w19a) upwards uses Java 16.
it.options.release = 16
}
java {
withSourcesJar()
}
}
task publishAll {
dependsOn("fabric:curseforge353890")
dependsOn("forge:curseforge442354")
}