Allow ability to specify jar baseName for gradle projects
See original GitHub issueThe Gradle project initializr does not provide the ability to specify the JAR name, so application builds generate a JAR with a default name (i.e. app-x-x-x.jar). Obviously, after generating the project, developers can tweak the build.gradle using this code:
jar { baseName = 'my-app-name' }
This directs Gradle to generate a JAR “my-app-name” prepended to the file name. However, it would save a little time if the initializr had an optional form field that allowed you to set the JAR base name. The initializr could then generate this configuration section for you in the build.gradle.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Gradle - jar file name in java plugin - Stack Overflow
@DaniloTommasina You can specify the names of your projects in your single settings.gradle file, for both the root project and each subproject.
Read more >Jar - Gradle DSL Version 7.6
Specifies the source files or directories for a copy and creates a child CopySourceSpec . The given source path is evaluated as per...
Read more >Getting Started | Building Java Projects with Gradle - Spring
First you set up a Java project for Gradle to build. To keep the focus on ... Finally, let's specify the name for...
Read more >Building Java JAR File :: CC 410 Textbook
Notice that we also can add an archivesBaseName setting here to change the base filename of our project's JAR file to match our...
Read more >Gradle Tutorial : Part 2 : Java Projects - Romin Irani's Blog
This will make Gradle look for any dependency (JAR files) that you specify in the Maven Central Repository. Just keep this point in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have updated the issue description. Please let me know if you have any further questions.
This makes sense. Thanks for the update guys!