This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
108 lines (88 loc) · 2.38 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
plugins {
id 'fabric-loom' version "$loom_version"
id 'maven-publish'
id 'java-library'
id 'io.github.juuxel.loom-quiltflower' version '1.7.2'
}
group 'dev.lazurite'
version quadz_version
loom {
accessWidenerPath = file("src/main/resources/quadz.accessWidener")
}
repositories {
maven {
name 'Lazurite'
url 'https://lazurite.dev/releases'
}
maven {
name 'Gecko'
url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'
}
maven {
name 'Shedaniel'
url "https://maven.shedaniel.me/"
}
maven {
name 'Ladysnake Mods'
url 'https://ladysnake.jfrog.io/artifactory/mods'
content {
includeGroup 'io.github.ladysnake'
includeGroupByRegex 'io\\.github\\.onyxstudios.*'
}
}
maven {
name 'Parchment'
url 'https://maven.parchmentmc.org'
}
mavenLocal()
}
dependencies {
minecraft "com.mojang:minecraft:$minecraft_version"
mappings loom.layered() {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-$minecraft_version:$parchment_version@zip")
}
// Fabric
modImplementation "net.fabricmc:fabric-loader:$fabric_loader_version"
modImplementation "net.fabricmc.fabric-api:fabric-api:$fabric_api_version"
// Lazurite
modImplementation "dev.lazurite:rayon-fabric:$rayon_version"
modImplementation include("dev.lazurite:form:$form_version")
modApi include("dev.lazurite:corduroy:$corduroy_version")
// modApi include("dev.lazurite:lattice:$lattice_version")
// Other
modImplementation include("io.github.ladysnake:satin:$satin_version") { transitive false }
modImplementation include("me.shedaniel.cloth:cloth-config-fabric:$cloth_version") { exclude(group: "net.fabricmc.fabric-api") }
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
}
jar.from 'LICENSE'
tasks.withType ProcessResources, {
inputs.property 'version', quadz_version
filesMatching 'fabric.mod.json', {
expand version: quadz_version
}
}
publishing {
if (hasProperty('publish.lazurite.alias') && hasProperty('publish.lazurite.secret')) {
repositories {
maven {
name 'Lazurite'
url 'https://lazurite.dev/releases'
credentials {
username property('publish.lazurite.alias')
password property('publish.lazurite.secret')
}
}
}
}
publications {
quadz MavenPublication, {
from components.java
}
}
}