Add sourcesJar task to custom Gradle plugin
问题 My company recently wrote gradle plugin for vanilla configuration (repositories, common dependencies across projects, etc). Overall, this has greatly simplified our build process and uncovered a few inconsistencies across projects. We recently tried to add a sourcesJar task to the plugin and it's not working. Here's the broken plugin: package com.mycompany.plugins import org.gradle.api.Project import org.gradle.api.Plugin import org.gradle.api.tasks.bundling.Jar class OurJavaPlugin implements