In fact, they probably shouldn’t even be part of the same Git repository. Obviously these plugins can’t be part of the main project source tree. These plugins are not part of the main project and everyone can write those plugins. Syncany has a concept of storage plugins: Users can extend the functionality of Syncany by downloading and installing plugins. Optional additional Gradle projects (from another Git repo) The adle file defines the mandatory sub-projects for the project:ġ.2. Instead, I’ll just show the essential parts of the configuration. There are many examples and blog posts that show you how to do multi-projects in Gradle, so I’m not going into detail here. Luckily Gradle provides a neat sub-projects support out of the box. Syncany comprises multiple modules (sub-projects) that depend on each other. Check out the Syncany organization page for a list of all the projects, the the main project page, or simply check out the adle file directly. The entire code and Gradle build scripts are available on GitHub. exe-installer with Inno Setup in Gradleįor the impatient folks, please note that this blog post talks about a real-life project. Install Wine and Inno Setup on Linux without user interaction Windows installers with Inno Setup on Linux (automated using Gradle) Building Debian/Ubuntu packages and uploading to a PPA Versioning releases in Gradle (using the Git commit) In particular, I’ll describe how to create a Windows installer using Inno Setup under Linux, create Debian packages and manage a PPA (debuild/dput) as well as how to add an optional Gradle sub-project. Since I really like Gradle and I myself often have a hard time finding proper answers for the questions I have, I’d like to demonstrate a few solutions that I have come up with. However, the amount of time that it saves is worth it. Granted, it’s not always easy to understand and the lack of proper documentation and IDE support makes things more like a trial-and-error-based packaging experience. Ever since then, I am simply amazed about what Gradle can do. A little while ago, I switched from an ugly Ant/Maven installation to Gradle with my open source project Syncany. Compared to Ant or Maven, it’s so much easier to use and write proper code for it - it’s unbelievable at times. Programming The magic of Gradle: create Windows installers, Debian packages, manage a PPA, and optional sub-projects
0 Comments
Leave a Reply. |