# Deploy artifact to Maven repository that has no file extension

**URL:** <https://discuss.gradle.org/t/deploy-artifact-to-maven-repository-that-has-no-file-extension/33226>\
**Category:** Help/Discuss\
**Created:** [September 19, 2019, 1:14pm UTC](https://discuss.gradle.org/t/deploy-artifact-to-maven-repository-that-has-no-file-extension/33226 "2019-09-19T13:14:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twwwt](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@twwwt](https://discuss.gradle.org/u/twwwt)\
**Post date:** [September 19, 2019, 1:14pm UTC](https://discuss.gradle.org/t/deploy-artifact-to-maven-repository-that-has-no-file-extension/33226/1 "2019-09-19T13:14:31Z")

</div>

I want to deploy binary artifacts (Linux and Mac OS X executables) to a Maven repository using Gradle’s `MavenPublication` such that they are stored in the repository **without** a file extension (as is the case by default for binaries/executables on Linux and Mac).

Say I have a binary `foo` in version `1.0.0`; in Maven terminology these would be the `artifactId` and `version`, respectively. The closest I can get is to deploy it under the name `foo-1.0.0.` - note the trailing dot (`.`). I would rather want it to be stored under the name `foo-1.0.0` (i.e., without the dot). I tried not specifying the `extension` property, and I also tried specifying an empty `extension=''`.

```gradle
publishing {
  publications {
    maven(MavenPublication) {
      artifact("some/parent/dir/foo") {
        extension ''
      }
    }
  }
}

```

Is it possible to achieve this?

This question has also been asked on [Stackoverflow](https://stackoverflow.com/q/58011715/3955765).
