RED-8359 - Fix gradle deploy

This commit is contained in:
Andrei Isvoran 2024-02-08 12:48:09 +02:00
parent 73d77624e9
commit d9677f37f7
2 changed files with 22 additions and 2 deletions

View File

@ -3,3 +3,19 @@ include:
ref: 'main'
file: 'ci-templates/gradle_java.yml'
deploy:
stage: deploy
tags:
- dind
script:
- echo "Building with gradle version ${BUILDVERSION}"
- gradle -Pversion=${BUILDVERSION} publish
- echo "BUILDVERSION=$BUILDVERSION" >> version.env
artifacts:
reports:
dotenv: version.env
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ /^release/
- if: $CI_COMMIT_TAG

View File

@ -26,7 +26,6 @@ repositories {
dependencies {
api("org.projectlombok:lombok:1.18.30")
api("org.springframework.boot:spring-boot-configuration-processor:3.2.2")
api("com.google.guava:guava:33.0.0-jre")
api("com.pdftron:PDFNet:10.3.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
@ -43,7 +42,7 @@ java.targetCompatibility = JavaVersion.VERSION_17
publishing {
publications {
create<MavenPublication>(name) {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
@ -58,6 +57,11 @@ publishing {
}
}
tasks.withType<PublishToMavenRepository> {
onlyIf { publication.name == "mavenJava" }
}
pmd {
isConsoleOutput = true
}