Skip to content

Commit

Permalink
Try to exclude module-info
Browse files Browse the repository at this point in the history
  • Loading branch information
robinst committed Mar 2, 2024
1 parent 2d8d817 commit 9f2a3ed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
25 changes: 16 additions & 9 deletions commonmark-android-test/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,22 @@ android {
// we add other modules sources in order for lint to process them (lint operates on sources)
sourceSets {
main {
java.srcDirs += [
'../../commonmark',
'../../commonmark-ext-autolink',
'../../commonmark-ext-gfm-strikethrough',
'../../commonmark-ext-gfm-tables',
'../../commonmark-ext-heading-anchor',
'../../commonmark-ext-ins',
'../../commonmark-ext-yaml-front-matter'
].collect { "$it/src/main/java" }
java {
[
'../../commonmark',
'../../commonmark-ext-autolink',
'../../commonmark-ext-gfm-strikethrough',
'../../commonmark-ext-gfm-tables',
'../../commonmark-ext-heading-anchor',
'../../commonmark-ext-ins',
'../../commonmark-ext-yaml-front-matter'
].forEach { d ->
// don't include module-info files, otherwise we get
// "too many module declarations found"
PatternSet patternSet = new PatternSet().exclude('**/module-info.java')
srcDirs += fileTree("$d/src/main/java").matching(patternSet)
}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion commonmark-android-test/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<manifest package="org.commonmark.android.test">
<manifest>
<application />
</manifest>

0 comments on commit 9f2a3ed

Please sign in to comment.