This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
62 lines (51 loc) · 1.55 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 io.papermc.paperweight.util.registering
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(idofrontLibs.plugins.mia.kotlin.jvm)
alias(idofrontLibs.plugins.mia.nms)
alias(idofrontLibs.plugins.mia.publication)
alias(idofrontLibs.plugins.mia.autoversion)
}
repositories {
mavenCentral()
mavenLocal()
google()
}
allprojects {
apply(plugin = "java")
version = rootProject.version
repositories {
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.dmulloy2.net/nexus/repository/public/")//ProtocolLib
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
val libs = rootProject.idofrontLibs
dependencies {
compileOnly(kotlin("stdlib-jdk8"))
compileOnly(libs.minecraft.plugin.protocollib)
}
}
dependencies {
api(project(":protocolburrito-api"))
api(idofrontLibs.minecraft.plugin.protocollib)
}
sourceSets["main"].java.srcDir(file("$buildDir/generated/burrito/main"))
tasks {
assemble {
dependsOn(reobfJar)
}
build {
dependsOn(project(":protocolburrito-plugin").tasks.build)
}
val generateBurrito by registering<JavaExec> {
mainClass.set("com.mineinabyss.protocolburrito.generation.MainKt")
classpath = project("protocolburrito-generator").sourceSets["main"].runtimeClasspath
outputs.dir("$buildDir/generated/burrito/main")
}
sourcesJar {
dependsOn(generateBurrito)
}
compileKotlin {
dependsOn(generateBurrito)
}
}