浏览代码

added Gradle

Keegan Witt 8 年之前
父节点
当前提交
c3d3ca6bee
共有 5 个文件被更改,包括 25 次插入0 次删除
  1. 1 0
      gradle/README-short.txt
  2. 22 0
      gradle/content.md
  3. 1 0
      gradle/github-repo
  4. 1 0
      gradle/license.md
  5. 二进制
      gradle/logo.png

+ 1 - 0
gradle/README-short.txt

@@ -0,0 +1 @@
+Gradle is a build tool with a focus on build automation and support for multi-language development.

+ 22 - 0
gradle/content.md

@@ -0,0 +1,22 @@
+# 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.
+
+%%LOGO%%
+
+# How to use this image
+
+## Building a Gradle project
+
+Run this from the directory of the Gradle project you want to build.
+
+`docker run --rm -v "$PWD":/project -w /project --name gradle gradle:alpine gradle <gradle-task>`
+
+## Reusing the Gradle cache
+
+The local Gradle cache can be reused across containers by creating a volume and mounting it in */gradle/.gradle*.
+
+```console
+docker volume create --name gradle-cache
+docker run -it -v gradle-cache:/gradle/.gradle gradle:latest gradle build
+```

+ 1 - 0
gradle/github-repo

@@ -0,0 +1 @@
+https://github.com/keeganwitt/docker-gradle

+ 1 - 0
gradle/license.md

@@ -0,0 +1 @@
+View [license information](https://gradle.org/license/) for the software contained in this image.

二进制
gradle/logo.png