mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
Attempt to make publishing work
This commit is contained in:
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@@ -29,23 +29,23 @@ pipeline {
|
||||
}
|
||||
|
||||
steps {
|
||||
rtMavenDeployer(
|
||||
id: "maven-deployer",
|
||||
rtGradleDeployer(
|
||||
id: "GRADLE_DEPLOYER",
|
||||
serverId: "opencollab-artifactory",
|
||||
releaseRepo: "maven-releases",
|
||||
snapshotRepo: "maven-snapshots"
|
||||
)
|
||||
rtMavenResolver(
|
||||
id: "maven-resolver",
|
||||
serverId: "opencollab-artifactory",
|
||||
releaseRepo: "maven-deploy-release",
|
||||
snapshotRepo: "maven-deploy-snapshot"
|
||||
rtGradleResolver(
|
||||
id: "GRADLE_RESOLVER",
|
||||
serverId: "opencollab-artifactory"
|
||||
)
|
||||
rtMavenRun(
|
||||
pom: 'pom.xml',
|
||||
goals: 'source:jar install -DskipTests',
|
||||
deployerId: "maven-deployer",
|
||||
resolverId: "maven-resolver"
|
||||
rtGradleRun(
|
||||
tool: 'Gradle 7',
|
||||
rootDir: "",
|
||||
buildFile: 'build.gradle',
|
||||
tasks: 'build artifactoryPublish'
|
||||
deployerId: "GRADLE_DEPLOYER",
|
||||
resolverId: "GRADLE_RESOLVER"
|
||||
)
|
||||
rtPublishBuildInfo(
|
||||
serverId: "opencollab-artifactory"
|
||||
|
||||
@@ -2,6 +2,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
|
||||
plugins {
|
||||
`java-library`
|
||||
`maven-publish`
|
||||
id("floodgate.build-logic") apply false
|
||||
// id("com.github.spotbugs") version "4.8.0" apply false
|
||||
|
||||
@@ -13,12 +14,13 @@ plugins {
|
||||
id("io.freefair.lombok") version "6.3.0" apply false
|
||||
}
|
||||
|
||||
allprojects {
|
||||
subprojects {
|
||||
// apply(plugin = "pmd")
|
||||
// apply(plugin = "com.github.spotbugs")
|
||||
|
||||
apply {
|
||||
plugin("java-library")
|
||||
plugin("maven-publish")
|
||||
plugin("com.github.johnrengelman.shadow")
|
||||
plugin("io.freefair.lombok")
|
||||
plugin("floodgate.build-logic")
|
||||
@@ -54,4 +56,12 @@ allprojects {
|
||||
options.encoding = Charsets.UTF_8.name()
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("maven") {
|
||||
from(components["java"])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user