Move plugin code out of the build definition into the source directory