-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
108 lines (86 loc) · 2.47 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 '1.2-SNAPSHOT'
id 'maven-publish'
}
group 'me.videogamesm12'
version '2.0-pre12'
repositories {
mavenCentral()
maven { url "https://maven.terraformersmc.com/releases/" }
maven { url "https://jitpack.io" }
}
dependencies {
minecraft "com.mojang:minecraft:1.17.1"
mappings "net.fabricmc:yarn:1.17.1+build.65:v2"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.46.0+1.17"
// Text components
implementation include("net.kyori:adventure-text-serializer-gson:4.9.3")
include("net.kyori:adventure-api:4.9.3")
include("net.kyori:adventure-key:4.9.3")
include("net.kyori:examination-api:1.3.0")
implementation include("com.github.VideoGameSmash12:HotbarFailDetector:893ee75648fb6bc34b88708bfc8d177a5b145b03")
subprojects.each {
include project("${it.name}:")
}
}
test {
useJUnitPlatform()
}
loom {
accessWidenerPath = file("src/main/resources/hotbarsplus.accesswidener")
}
allprojects {
apply plugin: 'fabric-loom'
apply plugin: 'maven-publish'
tasks.withType(JavaCompile).configureEach {
it.options.release.set(8)
}
repositories {
maven {
url "https://maven.shedaniel.me/"
}
maven {
url "https://maven.terraformersmc.com/releases/"
}
maven {
url "https://jitpack.io"
}
}
dependencies {
modImplementation "net.fabricmc:fabric-loader:0.12.12"
implementation "net.kyori:adventure-api:4.9.3"
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
}
processResources {
inputs.property "version", rootProject.version
filteringCharset "UTF-8"
filesMatching("fabric.mod.json") {
expand "version": rootProject.version
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
}
subprojects {
setArchivesBaseName(String.format("HotbarsPlus_%s", project.getName()))
version rootProject.version
dependencies {
implementation rootProject
}
}
subprojects.each {
remapJar.dependsOn("${it.path}:remapJar")
}
publishing {
publications {
maven(MavenPublication) {
groupId rootProject.group
artifactId rootProject.name
version rootProject.version
from components.java
}
}
}