File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
gradle/plugins/japicmp/src/main/kotlin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1-
21import de.undercouch.gradle.tasks.download.Download
2+ import junitbuild.extensions.javaModuleName
33import junitbuild.japicmp.InternalApiFilter
44import junitbuild.japicmp.JApiCmpExtension
55import junitbuild.japicmp.UnacceptedIncompatibilityRule
@@ -18,7 +18,8 @@ val extension = extensions.create<JApiCmpExtension>("japicmp").apply {
1818 acceptedIncompatibilities.apply {
1919 val acceptedBreakingChangesFile = rootProject.layout.projectDirectory.file(" gradle/config/japicmp/accepted-breaking-changes.txt" )
2020 if (acceptedBreakingChangesFile.asFile.exists()) {
21- convention(providers.fileContents(acceptedBreakingChangesFile).asText.map { it.lines() })
21+ convention(providers.fileContents(acceptedBreakingChangesFile).asText
22+ .map { it.lineSequence().filter { it.startsWith(project.javaModuleName) }.toList() })
2223 } else {
2324 empty()
2425 }
You can’t perform that action at this time.
0 commit comments