blob: 738d008fa035103c709f2aad3b22c04d6d746ac7 (
plain)
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
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.21"
`maven-publish`
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
group = "com.github.replaymod"
version = "SNAPSHOT"
repositories {
mavenCentral()
maven("https://repo.spongepowered.org/repository/maven-public/")
}
dependencies {
api("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.21")
implementation(kotlin("stdlib"))
api("org.cadixdev:lorenz:0.5.0")
runtimeOnly("net.java.dev.jna:jna:5.10.0") // don't strictly need this but IDEA spams log without
testImplementation("org.junit.jupiter:junit-jupiter:5.7.1")
testImplementation("io.kotest:kotest-assertions-core:4.6.3")
testRuntimeOnly("org.spongepowered:mixin:0.8.4")
}
tasks.named<Jar>("jar") {
archiveBaseName.set("remap")
}
publishing {
publications {
create("maven", MavenPublication::class) {
from(components["java"])
}
}
}
tasks.test {
useJUnitPlatform()
}
|