-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
55 lines (43 loc) · 1.31 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
import gg.essential.gradle.multiversion.StripReferencesTransform.Companion.registerStripReferencesAttribute
import java.net.URI
plugins {
java
kotlin("jvm") version(libs.versions.kotlin.get())
alias(libs.plugins.crowdin)
alias(libs.plugins.essential.defaults)
alias(libs.plugins.pv.java.templates)
alias(libs.plugins.pv.entrypoints)
}
val common = registerStripReferencesAttribute("common") {
excludes.add("net.minecraft")
}
dependencies {
compileOnly(libs.annotations)
compileOnly(libs.pv)
compileOnly("gg.essential:universalcraft-1.8.9-forge:254") {
attributes { attribute(common, true) }
}
}
repositories {
mavenCentral()
maven("https://repo.plasmoverse.com/releases")
maven("https://repo.plasmoverse.com/snapshots")
maven("https://repo.essential.gg/repository/maven-public")
}
crowdin {
url = URI.create("https://github.com/plasmoapp/plasmo-voice-crowdin/archive/refs/heads/addons.zip").toURL()
sourceFileName = "client/soundphysics.json"
resourceDir = "assets/pvaddonsoundphysics/lang"
}
tasks {
jar {
enabled = false
}
shadowJar {
configurations = listOf(project.configurations.shadow.get())
archiveClassifier.set("")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
}
}