question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow ability to specify jar baseName for gradle projects

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jtaylormayfieldcommented, Jun 12, 2017

I have updated the issue description. Please let me know if you have any further questions.

0reactions
jtaylormayfieldcommented, Jun 12, 2017

This makes sense. Thanks for the update guys!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found