This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
forked from plasmoapp/plasmo-voice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
76 lines (59 loc) · 1.73 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
65
66
67
68
69
70
71
72
73
74
75
76
import net.fabricmc.loom.api.LoomGradleExtensionAPI
val minecraftVersion: String by rootProject
val modVersion: String by rootProject
val mavenGroup: String by rootProject
plugins {
java
id("architectury-plugin") version("3.4-SNAPSHOT")
id("dev.architectury.loom") version("0.11.0-SNAPSHOT") apply(false)
id("com.github.johnrengelman.shadow") version("7.0.0") apply(false)
id("com.matthewprenger.cursegradle") version("1.4.0") apply(false)
id("com.modrinth.minotaur") version("2.+") apply(false)
}
architectury {
minecraft = minecraftVersion
}
subprojects {
apply(plugin = "dev.architectury.loom")
var mappingsDependency: Dependency? = null
configure<LoomGradleExtensionAPI> {
silentMojangMappingsLicense()
mappingsDependency = layered {
officialMojangMappings()
}
launches {
named("client") {
// property("fabric.log.level", "debug")
}
}
}
dependencies {
"minecraft"("com.mojang:minecraft:${minecraftVersion}")
mappingsDependency?.let { "mappings"(it) }
}
}
allprojects {
apply(plugin = "java")
apply(plugin = "architectury-plugin")
apply(plugin = "com.github.johnrengelman.shadow")
java { toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } }
base {
archivesBaseName = "plasmovoice"
}
project.group = mavenGroup
project.version = modVersion
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.release.set(17)
}
repositories {
maven {
url = uri("https://repo.plo.su")
}
mavenCentral()
mavenLocal()
}
java {
withSourcesJar()
}
}