public class GitSourceEntry
extends java.lang.Object
sources { git { } } entry: an arbitrary git repository to clone, build, and
add to a native Gradle configuration.
sources {
git {
url = "https://gitlab.com/me/lib.git"
ref = "main" // branch, tag or commit; optional, default the remote's default branch
dir = "java" // gradle project directory; optional, default the checkout root
modules = "routing contracts" // modules whose jars to take; optional, default the root jar
into = "implementation" // native configuration; optional, default "implementation"
}
}
| Constructor and Description |
|---|
GitSourceEntry() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDir() |
java.lang.String |
getInto() |
java.util.List<java.lang.String> |
getModules() |
java.lang.String |
getRef() |
java.lang.String |
getUrl() |
void |
setDir(java.lang.String dir) |
void |
setInto(java.lang.String into) |
void |
setModules(java.lang.String modules) |
void |
setRef(java.lang.String ref) |
void |
setUrl(java.lang.String url) |
public void setUrl(java.lang.String url)
url - the exact URL to clone from; any git host, not just github.com.public java.lang.String getUrl()
public void setRef(java.lang.String ref)
ref - the branch, tag, or commit to build, or null for the remote's default branch.public java.lang.String getRef()
public void setDir(java.lang.String dir)
dir - the gradle project directory relative to the checkout root, or null when the build
lives at the root. A repository whose gradle root is a subdirectory is otherwise
unbuildable, because the wrapper is not where the checkout is.public java.lang.String getDir()
public void setModules(java.lang.String modules)
modules - whitespace-separated gradle module names whose jars to take, or null to take
the single jar the root project produces.public java.util.List<java.lang.String> getModules()
public void setInto(java.lang.String into)
into - the native Gradle configuration the built jar is added to. Defaults to
"implementation".public java.lang.String getInto()