mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00: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 {
|
when {
|
||||||
anyOf {
|
anyOf {
|
||||||
branch "master"
|
branch "master"
|
||||||
branch "feature/extensions"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +49,7 @@ pipeline {
|
||||||
rootDir: "",
|
rootDir: "",
|
||||||
useWrapper: true,
|
useWrapper: true,
|
||||||
buildFile: 'build.gradle.kts',
|
buildFile: 'build.gradle.kts',
|
||||||
tasks: 'build artifactoryPublish',
|
tasks: 'artifactoryPublish',
|
||||||
deployerId: "GRADLE_DEPLOYER",
|
deployerId: "GRADLE_DEPLOYER",
|
||||||
resolverId: "GRADLE_RESOLVER"
|
resolverId: "GRADLE_RESOLVER"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,8 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications.create<MavenPublication>("mavenJava") {
|
publications {
|
||||||
|
create<MavenPublication>("mavenJava") {
|
||||||
groupId = project.group as String
|
groupId = project.group as String
|
||||||
artifactId = project.name
|
artifactId = project.name
|
||||||
version = project.version as String
|
version = project.version as String
|
||||||
|
@ -13,16 +14,18 @@ publishing {
|
||||||
artifact(tasks["shadowJar"])
|
artifact(tasks["shadowJar"])
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["sourcesJar"])
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
artifactory {
|
artifactory {
|
||||||
|
setContextUrl("https://repo.opencollab.dev/artifactory")
|
||||||
publish {
|
publish {
|
||||||
repository {
|
repository {
|
||||||
setRepoKey(if (isSnapshot()) "maven-snapshots" else "maven-releases")
|
setRepoKey(if (isSnapshot()) "maven-snapshots" else "maven-releases")
|
||||||
setMavenCompatible(true)
|
setMavenCompatible(true)
|
||||||
}
|
}
|
||||||
defaults {
|
defaults {
|
||||||
publishConfigs("archives")
|
publications("mavenJava")
|
||||||
setPublishArtifacts(true)
|
setPublishArtifacts(true)
|
||||||
setPublishPom(true)
|
setPublishPom(true)
|
||||||
setPublishIvy(false)
|
setPublishIvy(false)
|
||||||
|
|
Loading…
Reference in a new issue