-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (36 loc) · 1.06 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
`maven-publish`
kotlin("jvm") version "1.7.21"
id("com.github.johnrengelman.shadow") version "7.0.0"
}
group = "ru.iamdvz"
version = "1.0-SNAPSHOT"
description = "KotlinLib"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenLocal()
maven(url = "https://oss.sonatype.org/content/groups/public/")
maven(url = "https://repo.codemc.org/repository/maven-public/")
maven(url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
compileOnly("org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<ShadowJar> {
archiveFileName.set("KotlinLib-${version}.jar")
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}