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 012dc8a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 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
3 changes: 0 additions & 3 deletions commonmark-android-test/app/src/main/AndroidManifest.xml

This file was deleted.

0 comments on commit 012dc8a

Please sign in to comment.