Skip to content

Commit

Permalink
Makes jibExportDockerContext.targetDir configurable from build.gradle. (
Browse files Browse the repository at this point in the history
  • Loading branch information
coollog authored Jul 2, 2018
1 parent 497beeb commit 4e11674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jib-gradle-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.

### Added

- Can configure `jibExportDockerContext` output directory with `jibExportDockerContext.targetDir` ([#492](https://github.com/GoogleContainerTools/jib/pull/492))

### Changed

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.gradle.api.GradleException;
import org.gradle.api.Task;
import org.gradle.api.file.FileCollection;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputFiles;
import org.gradle.api.tasks.Nested;
import org.gradle.api.tasks.OutputDirectory;
Expand Down Expand Up @@ -74,6 +75,7 @@ public FileCollection getInputFiles() {
* @return the output directory for the Docker context is by default {@code build/jib-docker-
* context}.
*/
@Input
@OutputDirectory
public String getTargetDir() {
if (targetDir == null) {
Expand Down

0 comments on commit 4e11674

Please sign in to comment.