-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
57 lines (48 loc) · 1.77 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
architectury {
common(rootProject.enabled_platforms.split(","))
}
loom {
accessWidenerPath = file("src/main/resources/theatrical.accesswidener")
}
configurations {
shadowCommon
}
sourceSets {
main {
resources.srcDir file("src/generated/resources")
}
}
dependencies {
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
// Remove the next line if you don't want to depend on the API
modApi "dev.architectury:architectury:${rootProject.architectury_version}"
//Artnet
implementation "ch.bildspur:artnet4j:${rootProject.artnet4j_version}"
shadowCommon "ch.bildspur:artnet4j:${rootProject.artnet4j_version}"
//YAML
implementation "org.yaml:snakeyaml:${rootProject.snakeyaml_version}"
shadowCommon "org.yaml:snakeyaml:${rootProject.snakeyaml_version}"
// Shimmer
modImplementation "com.lowdragmc.shimmer:Shimmer-common:${shimmer_version}"
}
publishing {
publications {
mavenCommon(MavenPublication) {
artifactId = rootProject.archives_base_name
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
maven {
name = "RushMaven"
url = uri("https://mvn.imabad.dev/repository/maven-releases/")
credentials {
username = project.findProperty("nexusUsername") ?: System.getenv("NEXUS_USERNAME")
password = project.findProperty("nexusPassword") ?: System.getenv("NEXUS_PASSWORD")
}
}
}
}