Skip to content

Commit 3a904fc

Browse files
committed
fix: user 'sources' configuration is ignored
change: default 'sources' to the project directory rather than ./src/main/scala
1 parent 9ad6178 commit 3a904fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/groovy/org/scoverage/ScoverageExtension.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class ScoverageExtension {
9999
dependsOn(project.tasks[ScoveragePlugin.REPORT_NAME])
100100
}
101101

102+
sources = project.projectDir
102103
dataDir = new File(project.buildDir, 'scoverage')
103104
reportDir = new File(project.buildDir, 'reports' + File.separatorChar + 'scoverage')
104105
}
@@ -109,7 +110,6 @@ class ScoverageExtension {
109110
void execute(Project t) {
110111

111112
def extension = ScoveragePlugin.extensionIn(t)
112-
extension.sources = t.sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME).scala.srcDirs.iterator().next() as File
113113
extension.dataDir.mkdirs()
114114
extension.reportDir.mkdirs()
115115

0 commit comments

Comments
 (0)