You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
val sourceJar =
tasks.register<Jar>("sourceJar") {
group =LifecycleBasePlugin.BUILD_GROUP
description ="An archive of the source code"
classifier ="sources"
from(java.sourceSets["main"].allSource)
}
Expected Behavior
sourceJar in the example should be of type TaskProvider<Jar>
Current Behavior
sourceJar in the example above should not return the less specific typeNamedDomainObjectProvider<Jar>
Context
With the addition of the TaskProvider API, I'm concerned that future API's will constrain the inputs of lazy task's to only accept TaskProvider which will prevent objects created through tasks.register to be passed without casting.
Your Environment
------------------------------------------------------------
Gradle 4.10
------------------------------------------------------------
Build time: 2018-08-27 18:35:06 UTC
Revision: ee3751ed9f2034effc1f0072c2b2ee74b5dce67d
Kotlin DSL: 1.0-rc-3
Kotlin: 1.2.60
Groovy: 2.4.15
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_92 (Oracle Corporation 25.92-b14)
OS: Mac OS X 10.13.6 x86_64
The text was updated successfully, but these errors were encountered:
This is the example code I'm working from:
Expected Behavior
sourceJar
in the example should be of typeTaskProvider<Jar>
Current Behavior
sourceJar
in the example above should not return the less specific typeNamedDomainObjectProvider<Jar>
Context
With the addition of the
TaskProvider
API, I'm concerned that future API's will constrain the inputs of lazy task's to only acceptTaskProvider
which will prevent objects created throughtasks.register
to be passed without casting.Your Environment
The text was updated successfully, but these errors were encountered: