Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/README-short.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Gradle is a build tool with a focus on build automation and support for multi-language development.
Gradle is a fast, reliable, and flexible open-source build tool with an elegant, extensible DSL.
21 changes: 10 additions & 11 deletions gradle/content.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
# What is Gradle?

[Gradle](https://gradle.org/) is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites. Gradle has been designed to support build automation across multiple languages and platforms including Java, Scala, Android, C/C++, and Groovy, and is closely integrated with development tools and continuous integration servers including Eclipse, IntelliJ, and Jenkins.
[Gradle](https://gradle.org/) is a fast, dependable, and adaptable open-source build automation tool with an elegant and extensible declarative build language.

%%LOGO%%

# How to use this image

## Building a Gradle project
## Run a Gradle task

Run this from the directory of the Gradle project you want to build.
From your project directory:

`docker run --rm -u gradle -v "$PWD":/home/gradle/project -w /home/gradle/project %%IMAGE%% gradle <gradle-task>`
```bash
docker run --rm -u gradle \
-v "$PWD":/home/gradle/project \
-w /home/gradle/project \
%%IMAGE%% gradle <task>
```

Note the above command runs using uid/gid 1000 (user *gradle*) to avoid running as root.

If you are mounting a volume and the uid/gid running Docker is not *1000*, you should run as user *root* (`-u root`). *root* is also the default, so you can also simply not specify a user.

## Java 21 support

Java 21 does not currently support build customizations using Kotlin (such as using the `kotlin-dsl` plugin in a buildSrc script). Full support for Java 21 will come in a future Gradle release.
Replace `<task>` with your desired Gradle task, e.g., `build`.
1 change: 1 addition & 0 deletions gradle/get-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Gradle Community Slack](https://gradle.org/slack-invite), [Gradle Community Forum](https://discuss.gradle.org), [Docker Community Slack](https://dockr.ly/comm-slack)⁠, [Server Fault](https://serverfault.com/help/on-topic)⁠, [Unix & Linux](https://unix.stackexchange.com/help/on-topic)⁠, [Stack Overflow⁠](https://stackoverflow.com/help/on-topic)
Binary file modified gradle/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion gradle/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"hub": {
"categories": [
"developer-tools"
"languages-and-frameworks"
]
}
}