-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle.kts
79 lines (66 loc) · 2.14 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
plugins {
kotlin("jvm") version "1.8.21"
id("maven-publish")
}
group = "gg.flyte"
version = "1.1.17"
repositories {
mavenLocal()
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
content {
includeGroup("org.bukkit")
includeGroup("org.spigotmc")
}
}
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/central")
maven("https://jitpack.io")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
api("io.github.cdimascio:dotenv-kotlin:6.4.1")
api("org.mongodb:mongodb-driver-kotlin-sync:4.11.0")
api("com.google.code.gson:gson:2.10.1")
api("redis.clients:jedis:5.1.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0-RC2")
implementation(kotlin("reflect"))
// api("com.github.okkero:Skedule:v1.2.6")
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0-RC2")
}
tasks {
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
javadoc { options.encoding = Charsets.UTF_8.name() }
processResources { filteringCharset = Charsets.UTF_8.name() }
}
kotlin { jvmToolchain(17) }
publishing {
repositories {
maven {
name = "flyte-repository"
url = uri(
"https://repo.flyte.gg/${
if (version.toString().endsWith("-SNAPSHOT")) "snapshots" else "releases"
}"
)
credentials {
username = System.getenv("MAVEN_NAME") ?: property("mavenUser").toString()
password = System.getenv("MAVEN_SECRET") ?: property("mavenPassword").toString()
}
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = group.toString()
artifactId = "twilight"
version = version.toString()
from(components["java"])
}
}
}
}