mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-22 06:46:39 +01:00
Copy what Floodgate does for artifact publishing
This commit is contained in:
parent
98cfdb0b33
commit
8beae31cee
2 changed files with 11 additions and 9 deletions
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,24 +5,27 @@ plugins {
|
|||
}
|
||||
|
||||
publishing {
|
||||
publications.create<MavenPublication>("mavenJava") {
|
||||
groupId = project.group as String
|
||||
artifactId = project.name
|
||||
version = project.version as String
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
groupId = project.group as String
|
||||
artifactId = project.name
|
||||
version = project.version as String
|
||||
|
||||
artifact(tasks["shadowJar"])
|
||||
artifact(tasks["sourcesJar"])
|
||||
artifact(tasks["shadowJar"])
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue