Gradle integration with the Application Plugin
See original GitHub issueIn 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:
- Created 5 years ago
- Reactions:2
- Comments:13 (7 by maintainers)
Top 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 >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
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 thecontainer.mainClass
run.jvmArgs
/applicationDefaultJvmArgs
- Jib can use as thecontainer.jvmFlags
run.args
- Jib can use as thecontainer.args
run.environment
- use ascontainer.environment
run.debug
-true
can have Jib automatically add debugging agentlib to java invocationrun.minHeapSize/maxHeapSize
- set-Xms
/-Xmx
run.systemProperties
- can add as-D
JVM flagsWe’ll definitely need to look into this more and consider the side effects of automatically inferring these from the
application
plugin. @GoogleContainerTools/java-toolsTypically, 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.