Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrakal committed Jul 8, 2024
1 parent eadc97f commit 640e54a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ subprojects {
verbose.set(true)
filter {
exclude("**/generated/**", "**/build/**")
include("src//kotlin")
include("src/**/kotlin")
}
}

Expand Down
6 changes: 5 additions & 1 deletion plugin/src/main/kotlin/com/jraska/module/graph/Parse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ object Parse {

fun matcher(dependencyText: String): RegexpDependencyMatcher = matcher(dependencyText, DEPENDENCY_SIGN_DIVIDER)

fun restrictiveMatcher(matcherText: String): RegexpDependencyMatcher = matcher(matcherText, NO_DEPENDENCY_SIGN_DIVIDER)
fun restrictiveMatcher(matcherText: String): RegexpDependencyMatcher =
matcher(
matcherText,
NO_DEPENDENCY_SIGN_DIVIDER,
)

private fun matcher(
matcherText: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ConfigurationAvoidanceTest {
testProjectDir.newFile("build.gradle").writeText(
"""
plugins {
id 'com.jraska.module.graph.assertion'
id 'cz.mtrakal.module.graph.assertion'
}
moduleGraphAssert {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class FullProjectGradleTest {
"app",
content = """
plugins {
id 'com.jraska.module.graph.assertion'
id 'cz.mtrakal.module.graph.assertion'
}
apply plugin: 'java-library'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FullProjectMultipleAppliedGradleTest {
"app",
content = """
plugins {
id 'com.jraska.module.graph.assertion'
id 'cz.mtrakal.module.graph.assertion'
}
apply plugin: 'java-library'
Expand All @@ -59,7 +59,7 @@ class FullProjectMultipleAppliedGradleTest {
"no-dependencies",
content = """
plugins {
id 'com.jraska.module.graph.assertion'
id 'cz.mtrakal.module.graph.assertion'
}
apply plugin: 'java-library'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class FullProjectRootGradleTest {
content =
"""
plugins {
id 'com.jraska.module.graph.assertion'
id 'cz.mtrakal.module.graph.assertion'
}
apply plugin: 'java-library'
Expand Down Expand Up @@ -62,7 +62,7 @@ class FullProjectRootGradleTest {
content =
"""
plugins {
id 'com.jraska.module.graph.assertion'
id 'cz.mtrakal.module.graph.assertion'
}
apply plugin: 'java-library'
Expand All @@ -76,7 +76,7 @@ class FullProjectRootGradleTest {
"app",
content = """
plugins {
id 'com.jraska.module.graph.assertion'
id 'cz.mtrakal.module.graph.assertion'
}
apply plugin: 'java-library'
moduleGraphAssert {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class OnAnyBuildAssertTest {
"app",
content = """
plugins {
id 'com.jraska.module.graph.assertion'
id 'cz.mtrakal.module.graph.assertion'
}
apply plugin: 'java-library'
Expand Down

0 comments on commit 640e54a

Please sign in to comment.