-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
67 lines (56 loc) · 1.43 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
plugins {
`kotlin-dsl`
`maven-publish`
java
}
val projectName: String by project
val projectVersion: String by project
val projectGroup: String by project
group = projectGroup
version = projectVersion
kotlin.jvmToolchain(8)
repositories {
mavenCentral()
mavenLocal()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>()
.configureEach {
compilerOptions
.languageVersion
.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_9)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
name.set("Flare Gradle Plugin")
description.set("Flare Flamework's gradle plugin")
}
}
}
repositories {
mavenLocal()
}
}
dependencies {
// SnakeYAML for YAML file handling
implementation("org.yaml:snakeyaml:2.3")
// Gradle API dependencies
implementation(gradleApi())
}
gradlePlugin {
plugins {
create("flare") {
id = projectGroup
displayName = projectName
version = version
description =
"A multi-platform Minecraft plugin framework to target multiple platforms with just a single code-base."
implementationClass = "$projectGroup.FlareGradle"
}
}
}
tasks.named("build") {
finalizedBy("publishToMavenLocal")
}