Turn on relocatable build cache -- change PathSensitivity to RELATIVE
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ open class KaptTask : ConventionTask(), CompilerArgumentAware<K2JVMCompilerArgum
|
||||
@get:Classpath @get:InputFiles
|
||||
internal val pluginClasspath get() = pluginOptions.classpath
|
||||
|
||||
@get:InputFiles @get:PathSensitive(PathSensitivity.ABSOLUTE)
|
||||
@get:InputFiles @get:PathSensitive(PathSensitivity.RELATIVE)
|
||||
val source: FileCollection
|
||||
get() {
|
||||
val sourcesFromKotlinTask = kotlinCompileTask.source
|
||||
|
||||
+1
-1
@@ -830,7 +830,7 @@ internal class SubpluginEnvironment(
|
||||
}
|
||||
}
|
||||
|
||||
private val fileOptionsPathSensitivity = PathSensitivity.ABSOLUTE
|
||||
private val fileOptionsPathSensitivity = PathSensitivity.RELATIVE
|
||||
|
||||
internal fun Task.registerSubpluginOptionAsInput(subpluginId: String, option: SubpluginOption) {
|
||||
when (option) {
|
||||
|
||||
+2
-2
@@ -63,7 +63,7 @@ abstract class AbstractKotlinCompileTool<T : CommonToolArguments>() : AbstractCo
|
||||
var compilerClasspath: List<File>? = null
|
||||
|
||||
@InputFiles
|
||||
@PathSensitive(PathSensitivity.ABSOLUTE)
|
||||
@PathSensitive(PathSensitivity.RELATIVE)
|
||||
override fun getSource() = super.getSource()
|
||||
|
||||
@get:Classpath @get:InputFiles
|
||||
@@ -473,7 +473,7 @@ open class Kotlin2JsCompile() : AbstractKotlinCompile<K2JSCompilerArguments>(),
|
||||
|
||||
@get:InputFiles
|
||||
@get:Optional
|
||||
@get:PathSensitive(PathSensitivity.ABSOLUTE)
|
||||
@get:PathSensitive(PathSensitivity.RELATIVE)
|
||||
internal val friendDependency
|
||||
get() = friendTaskName
|
||||
?.let { project.getTasksByName(it, false).singleOrNull() as? Kotlin2JsCompile }
|
||||
|
||||
Reference in New Issue
Block a user