-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
build.gradle.kts
62 lines (49 loc) · 1.92 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
import dev.architectury.pack200.java.Pack200Adapter
plugins {
idea
java
id("com.github.johnrengelman.shadow") version "8.1.1"
kotlin("jvm") version "2.0.0-Beta1"
id("net.kyori.blossom") version "1.3.1"
id("gg.essential.loom") version "0.10.0.+"
id("dev.architectury.architectury-pack200") version "0.1.3"
}
version = project.findProperty("version") as String
blossom {
replaceToken("@VER@", version)
}
allprojects {
repositories {
mavenCentral()
maven("https://repo.spongepowered.org/maven/")
maven("https://repo.essential.gg/repository/maven-public/")
}
apply(plugin = "java")
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "com.github.johnrengelman.shadow")
apply(plugin = "net.kyori.blossom")
apply(plugin = "gg.essential.loom")
apply(plugin = "dev.architectury.architectury-pack200")
dependencies {
minecraft("com.mojang:minecraft:1.8.9")
mappings("de.oceanlabs.mcp:mcp_stable:22-1.8.9")
forge("net.minecraftforge:forge:1.8.9-11.15.1.2318-1.8.9")
implementation(kotlin("stdlib-jdk8"))
compileOnly("com.github.NotEnoughUpdates:NotEnoughUpdates:2.4.0:all")
implementation("com.github.Stivais:Commodore:3f4a14b1cf")
annotationProcessor("org.spongepowered:mixin:0.8.5-SNAPSHOT")
implementation("org.spongepowered:mixin:0.7.11-SNAPSHOT") { isTransitive = false }
implementation("gg.essential:loader-launchwrapper:1.1.3")
compileOnly("gg.essential:essential-1.8.9-forge:12132+g6e2bf4dc5")
}
loom {
log4jConfigs.from(file("log4j2.xml"))
forge.pack200Provider.set(Pack200Adapter())
}
sourceSets.main {
java.srcDir(file("$projectDir/src/main/kotlin"))
output.setResourcesDir(sourceSets.main.flatMap { it.java.classesDirectory })
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(8))
kotlin.jvmToolchain(8)
}