Gradle Build Script Classpath: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
// configuration closure | // configuration closure | ||
repositories { | |||
mavenLocal() | |||
} | |||
dependencies { | |||
classpath 'playground.example:example:0.1.0' | |||
} | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 00:24, 4 October 2020
Internal
Overview
The build script classpath for a project can be configured with Project.buildscript(Closure) which corresponds to the "buildscript" build.gradle DSL element:
buildscript {
// configuration closure
repositories {
mavenLocal()
}
dependencies {
classpath 'playground.example:example:0.1.0'
}
}