Update to 26.2
This commit is contained in:
parent
20797bd128
commit
5202301fdb
|
|
@ -35,7 +35,7 @@ tasks {
|
|||
file.parentFile.mkdirs()
|
||||
}
|
||||
if (!file.exists()) {
|
||||
download("https://jenkins.destro.xyz/job/Cosmos/lastSuccessfulBuild/artifact/cosmos-server/build/libs/cosmos-bundler-1.21.11-R0.1-SNAPSHOT-mojmap.jar", fileName)
|
||||
// download("https://jenkins.destro.xyz/job/Cosmos/lastSuccessfulBuild/artifact/cosmos-server/build/libs/cosmos-bundler-1.21.11-R0.1-SNAPSHOT-mojmap.jar", fileName)
|
||||
}
|
||||
serverJar(file)
|
||||
minecraftVersion("1.21")
|
||||
|
|
@ -67,7 +67,7 @@ publishing {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("com.alttd.cosmos:cosmos-api:1.21.11-R0.1-SNAPSHOT")
|
||||
compileOnly("com.alttd.cosmos:cosmos-api:26.2.build.17-stable")
|
||||
compileOnly("com.github.milkbowl:VaultAPI:1.7") {
|
||||
exclude("org.bukkit","bukkit")
|
||||
}
|
||||
|
|
@ -77,15 +77,6 @@ dependencies {
|
|||
annotationProcessor("org.projectlombok:lombok:1.18.30")
|
||||
}
|
||||
|
||||
fun gitCommit(): String {
|
||||
val os = ByteArrayOutputStream()
|
||||
project.exec {
|
||||
commandLine = "git rev-parse --short HEAD".split(" ")
|
||||
standardOutput = os
|
||||
}
|
||||
return String(os.toByteArray()).trim()
|
||||
}
|
||||
|
||||
fun download(link: String, path: String) {
|
||||
URL(link).openStream().use { input ->
|
||||
FileOutputStream(File(path)).use { output ->
|
||||
|
|
@ -98,7 +89,7 @@ paper {
|
|||
name = rootProject.name
|
||||
main = "$group.${rootProject.name}"
|
||||
bootstrapper = "$group.${rootProject.name}Bootstrap"
|
||||
version = "${rootProject.version}-${gitCommit()}"
|
||||
version = "${rootProject.version}"
|
||||
apiVersion = "1.21"
|
||||
authors = listOf("destro174")
|
||||
serverDependencies {
|
||||
|
|
|
|||
|
|
@ -1,14 +1,24 @@
|
|||
rootProject.name = "PlayerShops"
|
||||
|
||||
val nexusUser = providers.gradleProperty("alttdSnapshotUsername").orNull ?: System.getenv("NEXUS_USERNAME")
|
||||
val nexusPass = providers.gradleProperty("alttdSnapshotPassword").orNull ?: System.getenv("NEXUS_PASSWORD")
|
||||
|
||||
dependencyResolutionManagement {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
name = "AlttdNexus"
|
||||
url = uri(
|
||||
"https://repo.alttd.com/repository/alttd-snapshot/"
|
||||
)
|
||||
credentials(PasswordCredentials::class)
|
||||
url = uri("https://repo.alttd.com/repository/alttd-snapshot/")
|
||||
credentials {
|
||||
username = nexusUser
|
||||
password = nexusPass
|
||||
}
|
||||
}
|
||||
maven {
|
||||
url = uri("https://repo.alttd.com/repository/alttd/")
|
||||
credentials {
|
||||
username = nexusUser
|
||||
password = nexusPass
|
||||
}
|
||||
}
|
||||
maven("https://repo.destro.xyz/snapshots")
|
||||
maven("https://jitpack.io") { // Vault
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user