Я пытаюсь опубликовать свою библиотеку с нижеуказанным Gradle DSL:
publications {
prodRelease(MavenPublication) {
groupId appGroupId
artifactId appReleaseArtifactId
version libVersion
artifact("${defaultOutputTargetDir}${outputFileNameRelease}"){
builtBy('assembleRelease')
}
ext.repoType = 'Prod'
}
}
При попытке публикации я всегда получаю ошибку:
> Cannot convert assembleRelease to a task.
The following types/formats are supported:
- A Task instance
- A Buildable instance
- A TaskDependency instance
- A Provider that represents a task output
- A Provider instance that returns any of these types
- A Closure instance that returns any of these types
- A Callable instance that returns any of these types
- An Iterable, Collection, Map or array instance that contains any of these types
Что здесь может быть не так?Более того, это начало происходить, когда я обновил свой Gradle с 4.6 до 5.1.1