mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Only add the retrolambda jar if retrolambda is enabled.
This commit is contained in:
parent
1d259808af
commit
d3554b264e
2 changed files with 7 additions and 1 deletions
|
@ -32,7 +32,9 @@ class RetrolambdaPlugin @Inject constructor(val dependencyManager: DependencyMan
|
|||
}
|
||||
|
||||
// IClasspathContributor
|
||||
override fun entriesFor(project: Project?) = listOf(JAR)
|
||||
override fun entriesFor(project: Project?) =
|
||||
if (project != null && configurationFor(project) != null) listOf(JAR)
|
||||
else emptyList()
|
||||
|
||||
@Task(name = "retrolambda", description = "Run Retrolambda",
|
||||
alwaysRunAfter = arrayOf(JvmCompilerPlugin.TASK_COMPILE))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue