mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27: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
|
@ -8,6 +8,7 @@ import com.beust.kobalt.plugin.kotlin.*
|
|||
import com.beust.kobalt.plugin.packaging.assemble
|
||||
import com.beust.kobalt.plugin.publish.github
|
||||
import com.beust.kobalt.plugin.publish.jcenter
|
||||
import com.beust.kobalt.plugin.retrolambda.*
|
||||
import com.beust.kobalt.test
|
||||
import java.io.File
|
||||
import java.nio.file.Files
|
||||
|
@ -34,6 +35,9 @@ val wrapper = javaProject {
|
|||
}
|
||||
}
|
||||
|
||||
// retrolambda {
|
||||
// }
|
||||
|
||||
productFlavor("dev") {
|
||||
}
|
||||
|
||||
|
|
|
@ -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