Skip to content

Commit

Permalink
fix: user 'sources' configuration is ignored
Browse files Browse the repository at this point in the history
change: default 'sources' to the project directory rather than ./src/main/scala
  • Loading branch information
maiflai committed Feb 7, 2015
1 parent 9ad6178 commit 3a904fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/groovy/org/scoverage/ScoverageExtension.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class ScoverageExtension {
dependsOn(project.tasks[ScoveragePlugin.REPORT_NAME])
}

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

def extension = ScoveragePlugin.extensionIn(t)
extension.sources = t.sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME).scala.srcDirs.iterator().next() as File
extension.dataDir.mkdirs()
extension.reportDir.mkdirs()

Expand Down

0 comments on commit 3a904fc

Please sign in to comment.