-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
102 lines (86 loc) · 2.69 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
plugins {
id 'dev.architectury.loom' version '1.9.+' apply false
id 'architectury-plugin' version '3.4.+'
id 'com.github.johnrengelman.shadow' version '8.1.+' apply false
id 'me.shedaniel.unified-publishing' version '0.1.+' apply false
id 'com.github.breadmoirai.github-release' version '2.5.2'
id 'java-library'
id 'idea'
id 'maven-publish'
id 'com.modrinth.minotaur' version '2.+'
id 'io.freefair.lombok' version '8.+'
}
version = project.mod_version
group = project.maven_group
allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
group = rootProject.group
version = rootProject.version
base {
archivesName = "configurablebossbars"
}
repositories {
mavenCentral()
// rest of repositories block...
maven {
name = "Jamalam's Maven"
url = "https://maven.jamalam.tech/releases"
content {
includeGroup "io.github.jamalam360"
}
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
maven {
name = "ParchmentMC"
url = "https://maven.parchmentmc.org"
}
maven {
name = "Jitpack"
url = "https://jitpack.io"
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
options.release = 21
}
tasks.register("prepareWorkspace") {}
java {
withSourcesJar()
}
tasks.publish {
dependsOn("clean")
dependsOn("fabric:publishedUnified")
dependsOn("neoforge:publishUnified")
}
}
subprojects {
apply plugin: "dev.architectury.loom"
loom {
silentMojangMappingsLicense()
}
jar {
manifest {
attributes([
'Specification-Title' : mod_name,
'Specification-Version': project.jar.archiveVersion,
'Implementation-Title' : project.name,
'Implementation-Version': project.jar.archiveVersion,
'Built-On-Java': "${System.getProperty('java.vm.version')} (${System.getProperty('java.vm.vendor')})",
'Built-On-Minecraft': minecraft_version,
'JamLib-File-Name' : "${project.base.archivesName.get()}-${rootProject.version}.jar",
])
}
}
dependencies {
minecraft "net.minecraft:minecraft:${rootProject.minecraft_version}"
mappings loom.layered() {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.21:${libs.versions.parchment.get()}")
}
}
}