Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 27, 2024
1 parent 3126b80 commit 2b26d54
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions eo-runtime/src/test/groovy/check-runtime-deps.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ def project = new XmlSlurper().parseText(pom)
println 'Verify that there are no any dependencies in eo-runtime except those that are needed for tests'

project.dependencies.dependency.each {
if (it.scope.text() != 'test')
fail(String.format('Dependency %s.%s must be in "test" scope', it.groupId.text(), it.artifactId.text()))
if (it.scope.text() != 'test' && it.scope.text() != 'provided')
fail(
String.format(
'Dependency %s.%s must be in "test" or "provided" scope',
it.groupId.text(), it.artifactId.text()
)
)
}

true

0 comments on commit 2b26d54

Please sign in to comment.