1
0
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:
Tim203
2021-12-08 22:47:47 +01:00
parent 90225e3ae4
commit 5a64c2d3d4
2 changed files with 23 additions and 13 deletions

24
Jenkinsfile vendored
View File

@@ -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"

View File

@@ -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"])
}
}
}
}