mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
[GITHUB-205] Fix flavor tasks.
Fixes https://github.com/cbeust/kobalt/issues/205
This commit is contained in:
parent
0a98317bb8
commit
f4f95c0da7
3 changed files with 1 additions and 13 deletions
|
@ -162,13 +162,6 @@ open class JvmCompilerPlugin @Inject constructor(
|
|||
@IncrementalTask(name = JvmCompilerPlugin.TASK_COMPILE, description = "Compile the project", group = GROUP_BUILD,
|
||||
runAfter = arrayOf(TASK_CLEAN))
|
||||
fun taskCompile(project: Project): IncrementalTaskInfo {
|
||||
// Generate the BuildConfig before invoking sourceDirectories() since that call
|
||||
// might add the buildConfig source directories
|
||||
val sourceDirectory = context.variant.maybeGenerateBuildConfig(project, context)
|
||||
if (sourceDirectory != null) {
|
||||
sourceDirectories.add(sourceDirectory)
|
||||
}
|
||||
|
||||
// Set up the source files now that we have the variant
|
||||
sourceDirectories.addAll(context.variant.sourceDirectories(project, context, SourceSet.of(isTest = false)))
|
||||
|
||||
|
|
|
@ -78,11 +78,6 @@ class TaskManager @Inject constructor(val args: Args,
|
|||
}.forEach {
|
||||
put(it.name, it)
|
||||
}
|
||||
dynamicTasks.filter {
|
||||
it.plugin.accept(project)
|
||||
}.forEach {
|
||||
put(it.name, it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue