-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
100 lines (91 loc) · 2.4 KB
/
build.gradle.kts
File metadata and controls
100 lines (91 loc) · 2.4 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// Gradle 9.0.0 can't run in Java8
plugins {
`java-library`
`maven-publish`
alias(libs.plugins.ktlint)
alias(libs.plugins.shadow)
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.serialization)
}
group = "be4rjp"
version = System.getenv("VERSION") ?: "1.0-SNAPSHOT"
description = "Sclat"
repositories {
mavenCentral()
maven("https://jitpack.io/")
maven("https://repo.papermc.io/repository/maven-public/")
exclusiveContent {
forRepository {
mavenLocal()
}
filter {
includeGroup("org.spigotmc")
}
}
exclusiveContent {
forRepository {
maven("https://repo.codemc.io/repository/maven-public/")
}
filter {
includeGroup("org.bstats")
}
}
}
dependencies {
compileOnly(libs.spigot)
compileOnly(libs.noteblockapi)
compileOnly(libs.lunachat)
compileOnly(libs.protocolLib)
compileOnly(libs.dadadachecker)
compileOnly(libs.blockstudio)
compileOnly(libs.paperApi)
implementation(libs.cloudPaper)
implementation(libs.jspecify)
implementation(libs.kotlin.stdlib)
implementation(libs.yamlkt)
implementation(libs.fastboard)
implementation(libs.bundles.ktoml)
}
// Project Settings
val targetJavaVersion: Int = 11
val defaultEncoding: String = "UTF-8"
kotlin {
jvmToolchain(targetJavaVersion)
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
minimize()
mergeServiceFiles()
isEnableRelocation = true
relocationPrefix = "libs.be4rjp.sclat"
archiveFileName.set("Sclat.jar")
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
artifact(tasks.jar)
}
}
repositories {
maven {
name = "azisaba-repo"
credentials {
username = System.getenv("REPO_USERNAME")
password = System.getenv("REPO_PASSWORD")
}
url =
if (project.version.toString().endsWith("-SNAPSHOT")) {
uri("https://repo.azisaba.net/repository/maven-snapshots/")
} else {
uri("https://repo.azisaba.net/repository/maven-releases/")
}
}
}
}