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.

Gradle integration with the Application Plugin

See original GitHub issue

In Gradle it might be nice to integrate with the Application Plugin.

A similar project, com.bmuschko.docker-java-application, does this. This makes com.bmuschko.docker-java-application very convenient to use for java projects that are already using the Application Plugin.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
coollogcommented, Nov 5, 2018

Hi @devinrsmith , thanks for sharing the example. From what I see configurable on the Gradle application plugin, we can consider supporting automatic detection of the following configuration:

run.main/mainClassName - Jib can use as the container.mainClass run.jvmArgs/applicationDefaultJvmArgs - Jib can use as the container.jvmFlags run.args - Jib can use as the container.args run.environment - use as container.environment run.debug - true can have Jib automatically add debugging agentlib to java invocation run.minHeapSize/maxHeapSize - set -Xms/-Xmx run.systemProperties - can add as -D JVM flags

We’ll definitely need to look into this more and consider the side effects of automatically inferring these from the application plugin. @GoogleContainerTools/java-tools

1reaction
elefeintcommented, Sep 22, 2022

Typically, we are looking for a general idea of the design, to avoid wasting the contributor’s time. The main specific concerns are 1) not breaking backwards compatibility to users, and 2) not adding new dependencies unless absolutely necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Application Plugin - Gradle User Manual
Gradle supports the building of Java Modules as described in the corresponding section of the Java Library plugin documentation. Java modules can also...
Read more >
The Java Plugin - Gradle User Manual
The Java plugin adds Java compilation along with testing and bundling capabilities to a project. It serves as the basis for many of...
Read more >
Testing Gradle plugins
The composite builds feature of Gradle makes it very easy to test a plugin manually. The standalone plugin project and the consuming project...
Read more >
Developing Custom Gradle Plugins
A Gradle plugin packages up reusable pieces of build logic, which can be used across many different projects and builds. Gradle allows you...
Read more >
Gradle Plugin Reference
Generates Eclipse project files for the build that can be opened by the IDE. This set of plugins can also be used to...
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