1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-24 01:09:19 +00:00

Use rtGradleRun

This commit is contained in:
Tim203
2022-03-06 14:48:28 +01:00
parent 18a3a2e41e
commit 58ac8a8cc9
3 changed files with 11 additions and 6 deletions

13
Jenkinsfile vendored
View File

@@ -11,11 +11,18 @@ pipeline {
stage ('Build') {
steps {
sh 'git submodule update --init --recursive'
sh './gradlew clean build'
rtGradleRun {
usesPlugin: true,
tool: 'Gradle 7',
buildFile: 'build.gradle.kts',
tasks: 'clean build',
}
}
post {
success {
archiveArtifacts artifacts: '**/build/libs/floodgate-*.jar', fingerprint: true
archiveArtifacts artifacts: '**/build/libs/floodgate-*.jar',
excludes: '**/floodgate-parent-*.jar',
fingerprint: true
}
}
}
@@ -45,7 +52,7 @@ pipeline {
rootDir: "",
useWrapper: true,
buildFile: 'build.gradle.kts',
tasks: 'build artifactoryPublish',
tasks: 'artifactoryPublish',
deployerId: "GRADLE_DEPLOYER",
resolverId: "GRADLE_RESOLVER"
)

View File

@@ -4,6 +4,7 @@ plugins {
id("floodgate.base-conventions")
id("com.github.johnrengelman.shadow")
id("com.jfrog.artifactory")
id("maven-publish")
}
tasks {

View File

@@ -20,8 +20,6 @@ val platforms = setOf(
//todo re-add pmd and organisation/license/sdcm/issuemanagement stuff
val api: Project = projects.api.dependencyProject
subprojects {
// apply(plugin = "com.github.spotbugs")
@@ -47,7 +45,6 @@ subprojects {
} else {
when (this) {
in platforms -> plugins.apply("floodgate.shadow-conventions")
api -> plugins.apply("floodgate.shadow-conventions")
else -> plugins.apply("floodgate.base-conventions")
}
}