-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
80 lines (63 loc) · 2.28 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
68
69
70
71
72
73
74
75
76
77
78
79
80
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.20"
`java-gradle-plugin`
`maven-publish`
}
gradlePlugin {
plugins {
val pluginName = "cloche"
create(pluginName) {
id = "$group.$pluginName"
implementationClass = "earth.terrarium.cloche.ClochePlugin"
}
}
}
repositories {
mavenLocal()
maven(url = "https://maven.msrandom.net/repository/root/")
mavenCentral()
gradlePluginPortal()
}
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
implementation(group = "net.msrandom", name = "minecraft-codev-forge", version = "0.2.3")
implementation(group = "net.msrandom", name = "minecraft-codev-fabric", version = "0.2.3")
implementation(group = "net.msrandom", name = "minecraft-codev-mixins", version = "0.2.3")
implementation(group = "net.msrandom", name = "minecraft-codev-runs", version = "0.2.3")
implementation(group = "net.msrandom", name = "minecraft-codev-access-widener", version = "0.2.3")
implementation(group = "net.msrandom", name = "minecraft-codev-remapper", version = "0.2.3")
implementation(group = "net.msrandom", name = "minecraft-codev-decompiler", version = "0.2.3")
implementation(group = "net.msrandom", name = "minecraft-codev-includes", version = "0.2.3")
implementation(group = "net.msrandom", name = "minecraft-codev-intersections", version = "0.2.3")
implementation(group = "net.msrandom", name = "java-virtual-source-sets", version = "1.1.1")
implementation(group = "org.apache.commons", name = "commons-lang3", version = "3.12.0")
testImplementation(kotlin("test"))
testImplementation(gradleTestKit())
}
tasks.withType<KotlinCompile> {
compilerOptions.freeCompilerArgs.addAll("-Xcontext-receivers", "-Xjvm-default=all")
}
publishing {
repositories {
mavenLocal()
maven("https://maven.msrandom.net/repository/root/") {
credentials {
val mavenUsername: String? by project
val mavenPassword: String? by project
username = mavenUsername
password = mavenPassword
}
}
}
}
tasks.test {
useJUnitPlatform()
dependsOn(tasks.pluginUnderTestMetadata)
}
kotlin {
jvmToolchain(11)
}