-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
59 lines (51 loc) · 1.38 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
plugins {
alias(libs.plugins.kotlin.serialization)
`kotlin-dsl`
`maven-publish`
}
val projectName: String by project
val projectVersion: String by project
val projectGroup: String by project
group = projectGroup
version = projectVersion
kotlin.jvmToolchain(8)
repositories {
mavenLocal()
mavenCentral()
maven("https://repo.weavemc.dev/releases")
}
dependencies {
implementation(libs.bundles.asm)
implementation(libs.kxser.json)
implementation(libs.mappings)
implementation(libs.weave.internals)
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>()
.configureEach {
compilerOptions
.languageVersion
.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_9)
}
publishing {
repositories {
maven {
name = "WeaveMC"
url = uri("https://repo.weavemc.dev/releases")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
}
gradlePlugin {
plugins {
create("weave") {
id = projectGroup
displayName = projectName
description =
"Implements Remapped Minecraft libraries intended for developing Minecraft mods with Weave"
implementationClass = "$projectGroup.WeaveGradle"
}
}
}