Skip to content

Commit

Permalink
chore(cicd): missing jacoco & solace
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Oct 28, 2024
1 parent 8d0c225 commit 9f7919b
Showing 1 changed file with 45 additions and 10 deletions.
55 changes: 45 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
plugins {
id 'java-library'
id "idea"
id 'jacoco'
id "com.adarshr.test-logger" version "4.0.0"
id "com.github.johnrengelman.shadow" version "8.1.1"
id 'ru.vyarus.java-lib' version '2.4.0'
id 'ru.vyarus.java-lib' version '3.0.0'
id 'ru.vyarus.github-info' version '2.0.0'
id 'signing'
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
Expand Down Expand Up @@ -38,7 +39,7 @@ dependencies {
implementation enforcedPlatform("io.kestra:platform:$kestraVersion")
api enforcedPlatform("io.kestra:platform:$kestraVersion")

// Lombok
// lombok
annotationProcessor "org.projectlombok:lombok"
compileOnly "org.projectlombok:lombok"

Expand Down Expand Up @@ -105,6 +106,40 @@ dependencies {
testImplementation "org.testcontainers:solace:1.20.3"
}

/**********************************************************************************************************************\
* Allure Reports
**********************************************************************************************************************/
dependencies {
testImplementation enforcedPlatform("io.kestra:platform:$kestraVersion")
testImplementation "io.qameta.allure:allure-junit5"
}

configurations {
agent {
canBeResolved = true
canBeConsumed = true
}
}

dependencies {
agent "org.aspectj:aspectjweaver:1.9.22.1"
}

test {
jvmArgs = [ "-javaagent:${configurations.agent.singleFile}" ]
}

/**********************************************************************************************************************\
* Jacoco
**********************************************************************************************************************/
test {
finalizedBy jacocoTestReport
}

jacocoTestReport {
dependsOn test
}

/**********************************************************************************************************************\
* Publish
**********************************************************************************************************************/
Expand All @@ -131,11 +166,11 @@ jar {
}
}

pom {
maven.pom {
developers {
developer {
id "tchiotludo"
name "Ludovic Dehon"
id = "tchiotludo"
name = "Ludovic Dehon"
}
}
}
Expand All @@ -150,6 +185,11 @@ github {
license 'Apache'
}

tasks.withType(GenerateModuleMetadata).configureEach {
// Suppression this validation error as we want to enforce the Kestra platform
suppressedValidationErrors.add('enforced-platform')
}

/**********************************************************************************************************************\
* Version
**********************************************************************************************************************/
Expand All @@ -165,11 +205,6 @@ release {
}
}

tasks.withType(GenerateModuleMetadata).configureEach {
// Suppression this validation error as we want to enforce the Kestra platform
suppressedValidationErrors.add('enforced-platform')
}

/**********************************************************************************************************************\
* Dev
**********************************************************************************************************************/
Expand Down

0 comments on commit 9f7919b

Please sign in to comment.