# How can I modify the default configuration file generated by Gradle (command-line) to build a desktop app using Compose

**URL:** <https://discuss.kotlinlang.org/t/how-can-i-modify-the-default-configuration-file-generated-by-gradle-command-line-to-build-a-desktop-app-using-compose/24997>\
**Category:** Uncategorized\
**Created:** [June 11, 2022, 7:09am UTC](https://discuss.kotlinlang.org/t/how-can-i-modify-the-default-configuration-file-generated-by-gradle-command-line-to-build-a-desktop-app-using-compose/24997 "2022-06-11T07:09:49Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![broot](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@broot](https://discuss.kotlinlang.org/u/broot)\
**Post date:** [June 14, 2022, 9:19am UTC](https://discuss.kotlinlang.org/t/how-can-i-modify-the-default-configuration-file-generated-by-gradle-command-line-to-build-a-desktop-app-using-compose/24997/9 "2022-06-14T09:19:10Z")

</div>

I assume you mean Compose Desktop, because there is no such thing as “just desktop application” in Java/Kotlin.

Yes, there is such option and it is described in the documentation very extensively: [compose-jb/README.md at master · JetBrains/compose-jb · GitHub](https://github.com/JetBrains/compose-jb/blob/master/tutorials/Native_distributions_and_local_execution/README.md) . I see there is even an option to produce a fat jar you asked for:

```auto
./gradlew packageUberJarForCurrentOS

```

Note that Compose Desktop internally uses native libraries for its UI, these apps are not pure-Java, so they are not multi-platform, they are less standard and building them is more complicated, at least internally.

---

_[View the full topic](https://discuss.kotlinlang.org/t/how-can-i-modify-the-default-configuration-file-generated-by-gradle-command-line-to-build-a-desktop-app-using-compose/24997)._
