Package com.diffplug.blowdryer
Class BlowdryerSetup
- java.lang.Object
-
- com.diffplug.blowdryer.BlowdryerSetup
-
public class BlowdryerSetup extends java.lang.ObjectConfigures whereBlowdryer.file(String)downloads files from.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBlowdryerSetup.Bitbucketstatic classBlowdryerSetup.BitbucketTypestatic classBlowdryerSetup.GitAnchorTypeclassBlowdryerSetup.GitHubclassBlowdryerSetup.GitLabstatic classBlowdryerSetup.PluginsBlock
-
Constructor Summary
Constructors Constructor Description BlowdryerSetup(java.io.File rootDir)Pass in the directory that will be used to resolve string arguments to devLocal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlowdryerSetup.Bitbucketbitbucket(java.lang.String repoOrg, BlowdryerSetup.GitAnchorType anchorType, java.lang.String anchor)Sets the source where we will grab these scripts.voiddevLocal(java.lang.Object devPath)Sets the source to be the given local folder, usually for developing changes before they are pushed to git.voidexperimental(groovy.lang.Closure<java.lang.String> function)Sets the mapping from `file(String)` to `immutableUrl(String)`.voidexperimental(java.util.function.Function<java.lang.String,java.lang.String> function)Sets the mapping from `file(String)` to `immutableUrl(String)`.BlowdryerSetup.GitHubgithub(java.lang.String repoOrg, BlowdryerSetup.GitAnchorType anchorType, java.lang.String anchor)Sets the source where we will grab these scripts.BlowdryerSetup.GitLabgitlab(java.lang.String repoOrg, BlowdryerSetup.GitAnchorType anchorType, java.lang.String anchor)Sets the source where we will grab these scripts.voidlocalJar(java.io.File jarFile)Uses the providedjarFileto extract a file resource.voidrepoSubfolder(java.lang.String repoSubfolder)Default value is `src/main/resources`.voidsetPluginsBlockTo(Action<BlowdryerSetup.PluginsBlock> versionSetter)
-
-
-
Method Detail
-
repoSubfolder
public void repoSubfolder(java.lang.String repoSubfolder)
Default value is `src/main/resources`. If you change, you must change as the *first* call. The nice thing about the default `src/main/resources` is that if you ever want to, you could copy the blowdryer code into your blowdryer repo, and deploy your own plugin that pulls resources from the local jar rather than from github. Keeping the default lets you switch to that approach in the future without moving your scripts.
-
github
public BlowdryerSetup.GitHub github(java.lang.String repoOrg, BlowdryerSetup.GitAnchorType anchorType, java.lang.String anchor)
Sets the source where we will grab these scripts.
-
gitlab
public BlowdryerSetup.GitLab gitlab(java.lang.String repoOrg, BlowdryerSetup.GitAnchorType anchorType, java.lang.String anchor)
Sets the source where we will grab these scripts.
-
bitbucket
public BlowdryerSetup.Bitbucket bitbucket(java.lang.String repoOrg, BlowdryerSetup.GitAnchorType anchorType, java.lang.String anchor)
Sets the source where we will grab these scripts.
-
localJar
public void localJar(java.io.File jarFile)
Uses the providedjarFileto extract a file resource.- Parameters:
jarFile- Absolute path to JAR on the file system.
-
experimental
public void experimental(groovy.lang.Closure<java.lang.String> function)
Sets the mapping from `file(String)` to `immutableUrl(String)`.
-
experimental
public void experimental(java.util.function.Function<java.lang.String,java.lang.String> function)
Sets the mapping from `file(String)` to `immutableUrl(String)`.
-
devLocal
public void devLocal(java.lang.Object devPath)
Sets the source to be the given local folder, usually for developing changes before they are pushed to git.
-
setPluginsBlockTo
public void setPluginsBlockTo(Action<BlowdryerSetup.PluginsBlock> versionSetter) throws java.io.IOException
- Throws:
java.io.IOException
-
-