陰影插件工作時,我試圖執行我的搖籃代碼:陰影的gradle項目文件不編譯
import com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer
shadow {
transformer(AppendingTransformer) {
resource = 'META-INF/spring.handlers'
}
transformer(AppendingTransformer) {
resource = 'META-INF/spring.schemas'
}
}
正如我收到folloqing錯誤結果:
Could not find method transformer() for arguments [class com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer, [email protected]] on project ':ProjectX'.
我失去了什麼?應該在哪裏定義'變壓器'功能?
您使用的是什麼版本的shadow插件? – Boaz