-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
38 lines (34 loc) · 1023 Bytes
/
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
plugins {
kotlin("jvm") version "1.9.21"
}
group = "com.github.encryptsl.countryblocker"
version = providers.gradleProperty("plugin_version").get()
description = providers.gradleProperty("plugin_description").get()
repositories {
mavenLocal()
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
compileOnly(kotlin("stdlib", "1.9.21"))
compileOnly("com.maxmind.geoip2:geoip2:4.0.1")
testImplementation("com.maxmind.geoip2:geoip2:4.0.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.2")
}
tasks {
test {
useJUnitPlatform()
}
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(17))
}
}
processResources {
filesMatching("plugin.yml") {
expand(project.properties)
}
}
}