-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
79 lines (69 loc) · 2 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 {
java
id("io.papermc.paperweight.userdev") version "1.7.1"
id("org.jetbrains.kotlin.jvm") version "2.0.20-Beta2"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("maven-publish")
}
group = "dev.rishon.sync"
version = "1.1"
repositories {
mavenCentral()
gradlePluginPortal()
maven {
name = "papermc-repo"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("redis.clients:jedis:5.1.3")
implementation("com.zaxxer:HikariCP:5.1.0")
implementation("me.lucko:jar-relocator:1.7")
implementation("com.fasterxml.jackson.core:jackson-databind:2.17.2")
}
val targetJavaVersion = 21
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible) {
options.release.set(targetJavaVersion)
}
}
tasks.shadowJar {
archiveBaseName.set("sync")
archiveClassifier.set("")
mergeServiceFiles()
}
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(props)
}
}
publishing {
repositories {
maven {
name = "seladevelopment-repo"
url = uri("https://repo.rishon.systems/releases")
credentials {
username = System.getenv("MAVEN_NAME")
password = System.getenv("MAVEN_SECRET")
}
authentication {
create<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = "systems.rishon"
artifactId = "sync"
version = "${project.version}"
from(components["java"])
}
}
}