RED-8359 - Fix gradle deploy
This commit is contained in:
parent
73d77624e9
commit
d9677f37f7
@ -3,3 +3,19 @@ include:
|
|||||||
ref: 'main'
|
ref: 'main'
|
||||||
file: 'ci-templates/gradle_java.yml'
|
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
|
||||||
@ -26,7 +26,6 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("org.projectlombok:lombok:1.18.30")
|
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.google.guava:guava:33.0.0-jre")
|
||||||
api("com.pdftron:PDFNet:10.3.0")
|
api("com.pdftron:PDFNet:10.3.0")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
|
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
|
||||||
@ -43,7 +42,7 @@ java.targetCompatibility = JavaVersion.VERSION_17
|
|||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>(name) {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -58,6 +57,11 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<PublishToMavenRepository> {
|
||||||
|
onlyIf { publication.name == "mavenJava" }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
pmd {
|
pmd {
|
||||||
isConsoleOutput = true
|
isConsoleOutput = true
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user