forked from BrassAmber-Mods/soulbound-armory-0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (66 loc) · 1.66 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
plugins {
id("maven-publish")
id("dev.architectury.loom").version("latest.release")
}
group = "net.auoeke"
version = "3.0.0"
def gameVersion = "1.18.1"
def yarn = "3"
def forgeVersion = "39.0.5"
sourceCompatibility = 17
targetCompatibility = 17
sourceSets {
main {
java.srcDirs = ["source"]
resources {
srcDirs = ["resources"]
include("assets/", "META-INF/", "pack.mcmeta", "*.json")
}
}
}
repositories {
maven {url = "https://maven.auoeke.net"}
}
loom {
forge {
mixinConfig("soulbound-armory.mixins.json", "soulbound-armory.components.mixins.json", "soulbound-armory.text.mixins.json")
}
}
configurations {
library {
implementation.extendsFrom(it)
afterEvaluate {
new File(loom.files.projectPersistentCache, "forge_minecraft_classpath.txt") << resolvedConfiguration.files.collect {'\n' + it}.join()
}
}
}
dependencies {
minecraft("com.mojang:minecraft:$gameVersion")
mappings("net.fabricmc:yarn:$gameVersion+build.$yarn:v2")
forge("net.minecraftforge:forge:$gameVersion-$forgeVersion")
library("net.auoeke:reflect:latest.integration")
}
tasks.withType(JavaCompile) {
options.compilerArgs.add("-nowarn")
}
java {
withSourcesJar()
}
processResources {
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
repositories {
maven {
url = "https://maven.auoeke.net"
credentials {
username = System.properties["maven.username"]
password = System.properties["maven.password"]
}
}
}
}