As explained in the documentation:
dependencies {
compile files('libs/spigot.jar')
}
The above will add the libs/spigot.jar
file to the compile
configuration. You can of course add it to any other configuration (runtime, etc.).
Note that using build/libs
is an extremely bad idea, since the whole build directory will be deleted as soon as you execute gradle clean
. The build directory is used to store artifacts generated by the build.