-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (58 loc) · 1.7 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
plugins {
java
application
id("io.github.goooler.shadow") version "8.1.7"
alias(libs.plugins.publishdata)
`maven-publish`
}
group = "net.onelitefeather.microtus.cloudnet"
version = "1.1.2"
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
maven("https://s01.oss.sonatype.org/content/groups/staging/")
maven("https://jitpack.io")
}
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor(1, "minutes")
}
dependencies {
implementation(platform(libs.microtus.bom))
implementation(libs.microtus.core)
implementation("net.kyori:adventure-text-minimessage:4.17.0")
}
application {
mainClass.set("net.onelitefeather.microtus.cloudnet.Bootstrap")
}
tasks {
shadowJar {
archiveVersion.set("")
archiveClassifier.set("")
archiveBaseName.set("application")
}
}
publishData {
addBuildData()
useEldoNexusRepos(true)
publishTask("shadowJar")
}
publishing {
publications.create<MavenPublication>("maven") {
// Configure our maven publication
publishData.configurePublication(this)
}
repositories {
// We add EldoNexus as our repository. The used url is defined by the publish data.
maven {
authentication {
credentials(PasswordCredentials::class) {
// Those credentials need to be set under "Settings -> Secrets -> Actions" in your repository
username = System.getenv("ELDO_USERNAME")
password = System.getenv("ELDO_PASSWORD")
}
}
name = "EldoNexus"
setUrl(publishData.getRepository())
}
}
}