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 { steps {
rtMavenDeployer( rtGradleDeployer(
id: "maven-deployer", id: "GRADLE_DEPLOYER",
serverId: "opencollab-artifactory", serverId: "opencollab-artifactory",
releaseRepo: "maven-releases", releaseRepo: "maven-releases",
snapshotRepo: "maven-snapshots" snapshotRepo: "maven-snapshots"
) )
rtMavenResolver( rtGradleResolver(
id: "maven-resolver", id: "GRADLE_RESOLVER",
serverId: "opencollab-artifactory", serverId: "opencollab-artifactory"
releaseRepo: "maven-deploy-release",
snapshotRepo: "maven-deploy-snapshot"
) )
rtMavenRun( rtGradleRun(
pom: 'pom.xml', tool: 'Gradle 7',
goals: 'source:jar install -DskipTests', rootDir: "",
deployerId: "maven-deployer", buildFile: 'build.gradle',
resolverId: "maven-resolver" tasks: 'build artifactoryPublish'
deployerId: "GRADLE_DEPLOYER",
resolverId: "GRADLE_RESOLVER"
) )
rtPublishBuildInfo( rtPublishBuildInfo(
serverId: "opencollab-artifactory" serverId: "opencollab-artifactory"

View File

@@ -2,6 +2,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins { plugins {
`java-library` `java-library`
`maven-publish`
id("floodgate.build-logic") apply false id("floodgate.build-logic") apply false
// id("com.github.spotbugs") version "4.8.0" 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 id("io.freefair.lombok") version "6.3.0" apply false
} }
allprojects { subprojects {
// apply(plugin = "pmd") // apply(plugin = "pmd")
// apply(plugin = "com.github.spotbugs") // apply(plugin = "com.github.spotbugs")
apply { apply {
plugin("java-library") plugin("java-library")
plugin("maven-publish")
plugin("com.github.johnrengelman.shadow") plugin("com.github.johnrengelman.shadow")
plugin("io.freefair.lombok") plugin("io.freefair.lombok")
plugin("floodgate.build-logic") plugin("floodgate.build-logic")
@@ -54,4 +56,12 @@ allprojects {
options.encoding = Charsets.UTF_8.name() options.encoding = Charsets.UTF_8.name()
} }
} }
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
} }