Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-10-03 08:21:06 +02:00
Copy what Floodgate does for artifact publishing
Dieser Commit ist enthalten in:
Ursprung
98cfdb0b33
Commit
8beae31cee
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -29,7 +29,6 @@ pipeline {
|
||||
when {
|
||||
anyOf {
|
||||
branch "master"
|
||||
branch "feature/extensions"
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,7 +49,7 @@ pipeline {
|
||||
rootDir: "",
|
||||
useWrapper: true,
|
||||
buildFile: 'build.gradle.kts',
|
||||
tasks: 'build artifactoryPublish',
|
||||
tasks: 'artifactoryPublish',
|
||||
deployerId: "GRADLE_DEPLOYER",
|
||||
resolverId: "GRADLE_RESOLVER"
|
||||
)
|
||||
|
@ -5,7 +5,8 @@ plugins {
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications.create<MavenPublication>("mavenJava") {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
groupId = project.group as String
|
||||
artifactId = project.name
|
||||
version = project.version as String
|
||||
@ -14,15 +15,17 @@ publishing {
|
||||
artifact(tasks["sourcesJar"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
artifactory {
|
||||
setContextUrl("https://repo.opencollab.dev/artifactory")
|
||||
publish {
|
||||
repository {
|
||||
setRepoKey(if (isSnapshot()) "maven-snapshots" else "maven-releases")
|
||||
setMavenCompatible(true)
|
||||
}
|
||||
defaults {
|
||||
publishConfigs("archives")
|
||||
publications("mavenJava")
|
||||
setPublishArtifacts(true)
|
||||
setPublishPom(true)
|
||||
setPublishIvy(false)
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren