This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
65 lines (52 loc) · 2.02 KB
/
build.gradle.kts
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
import net.fabricmc.loom.api.LoomGradleExtensionAPI
plugins {
id("architectury-plugin") version "3.4-SNAPSHOT"
id("dev.architectury.loom") version "1.5-SNAPSHOT" apply false
idea
java
kotlin("jvm") version "1.9.22"
}
val minecraftVersion = project.properties["minecraft_version"] as String
architectury.minecraft = minecraftVersion
subprojects {
apply(plugin = "dev.architectury.loom")
val loom = project.extensions.getByName<LoomGradleExtensionAPI>("loom")
repositories {
mavenCentral()
mavenLocal()
maven("https://maven.generations.gg/snapshots")
maven("https://maven.generations.gg/releases")
maven("https://jitpack.io")
maven("https://nexus.resourcefulbees.com/repository/maven-public/")
maven("https://maven.bai.lol")
maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
maven("https://cursemaven.com").content { includeGroup("curse.maven") }
maven("https://maven.impactdev.net/repository/development/")
maven("https://maven.parchmentmc.org")
}
@Suppress("UnstableApiUsage")
dependencies {
"minecraft"("com.mojang:minecraft:$minecraftVersion")
"mappings"(loom.layered{
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-$minecraftVersion:${project.properties["parchment"]}@zip")
})
compileOnly("org.jetbrains:annotations:24.1.0")
}
loom.silentMojangMappingsLicense()
}
allprojects {
apply(plugin = "java")
apply(plugin = "architectury-plugin")
apply(plugin = "maven-publish")
apply(plugin = "idea")
apply(plugin = "org.jetbrains.kotlin.jvm")
version = project.properties["mod_version"] as String
group = project.properties["maven_group"] as String
base.archivesName.set(project.properties["archives_base_name"] as String)
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.release.set(17)
}
java.withSourcesJar()
}