-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
47 lines (39 loc) · 1019 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
39
40
41
42
43
44
45
46
47
plugins {
kotlin("jvm") version "2.0.20"
kotlin("plugin.serialization") version "2.0.20"
id("com.gradleup.shadow") version "8.3.3"
`maven-publish`
}
group = "org.sayandev"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("net.mamoe.yamlkt:yamlkt:0.13.0")
}
kotlin {
jvmToolchain(17)
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "org.sayandev.MainKt"
}
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["shadow"])
}
}
repositories {
maven {
name = "sayandevelopment-repo"
url = uri("https://repo.sayandev.org/snapshots/")
credentials {
username = System.getenv("REPO_SAYAN_USER") ?: project.findProperty("repo.sayan.user") as String?
password = System.getenv("REPO_SAYAN_TOKEN") ?: project.findProperty("repo.sayan.token") as String?
}
}
}
}