I have a nodejs application, directory structure setup as follows:

. ├── api │ └── swagger │ └── swagger.yaml └── service ├── app.js ├── build.gradle ├── lib │ └── utils.js └── package.json

Here is a snippet from build.gradle which attempts to create a tar of required files ..

apply plugin: 'maven-publish' def jsLib = 'lib/' def packageJson = 'package.json' def swagger = '../api/swagger/swagger.yaml' def appJs = 'app.js' task pack(type: Tar) { from(project.projectDir) include(packageJson) include(swagger) include(jsLib) include(appJs) baseName rootProject.name + '.' + project.name version rootProject.version compression = Compression.GZIP extension = 'tgz' }

This partially works, the resulting tar contains everything except swagger.yaml which is in the parent directory to service/ .

How could this file be included?