How to apply a plugin not in Gradle Core or Gradle Central Plugin Repository

The last one looks sensible. Just try to remove the id "nebula.rpm" version "3.4.1" line and add the following one at the bottom (outside the plugins block):

apply plugin: "nebula.rpm"