Skip to content

Commit

Permalink
reuse dependencies fromm root project
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Thurner committed May 24, 2024
1 parent 42ef7f0 commit b0b3795
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ repositories {
ext["jackson.version"] = fasterxml_version
ext["junit-jupiter.version"] = junit_version

ext { qDox = "com.thoughtworks.qdox:qdox:2.1.0" }
ext { springBootStarterWeb = "org.springframework.boot:spring-boot-starter-web:${spring_boot_version}" }

dependencies {

// Note: jenkins-client is not well maintained and includes dependencies to libraries with critical security issues (e.g. CVE-2020-10683 for [email protected])
Expand Down Expand Up @@ -263,7 +266,7 @@ dependencies {
}
}

implementation "com.thoughtworks.qdox:qdox:2.1.0"
implementation qDox
implementation "io.sentry:sentry-logback:${sentry_version}"
implementation "io.sentry:sentry-spring-boot-starter-jakarta:${sentry_version}"

Expand Down Expand Up @@ -328,7 +331,7 @@ dependencies {
implementation "org.springframework.boot:spring-boot-starter-aop:${spring_boot_version}"
implementation "org.springframework.boot:spring-boot-starter-data-jpa:${spring_boot_version}"
implementation "org.springframework.boot:spring-boot-starter-security:${spring_boot_version}"
implementation("org.springframework.boot:spring-boot-starter-web:${spring_boot_version}") {
implementation(springBootStarterWeb) {
exclude module: "spring-boot-starter-undertow"
}
implementation "org.springframework.boot:spring-boot-starter-tomcat:${spring_boot_version}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ repositories {
mavenCentral()
}

evaluationDependsOn(':')

dependencies {
implementation 'com.thoughtworks.qdox:qdox:2.0-M9'
implementation "org.springframework.boot:spring-boot-starter-web:${spring_boot_version}"
implementation rootProject.ext.qDox
implementation rootProject.ext.springBootStarterWeb
}

test {
Expand Down

0 comments on commit b0b3795

Please sign in to comment.