mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-24 01:09:19 +00:00
Use rtGradleRun
This commit is contained in:
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@@ -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"
|
||||
)
|
||||
|
||||
@@ -4,6 +4,7 @@ plugins {
|
||||
id("floodgate.base-conventions")
|
||||
id("com.github.johnrengelman.shadow")
|
||||
id("com.jfrog.artifactory")
|
||||
id("maven-publish")
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user