mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 10:26:46 +00:00
feat: implement cache-dependency-path option to control caching dependency
This commit is contained in:
parent
78078da0cd
commit
558c94872e
14 changed files with 278 additions and 59 deletions
17
__tests__/cache/gradle/build.gradle
vendored
17
__tests__/cache/gradle/build.gradle
vendored
|
@ -1,17 +0,0 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
implementation 'org.codehaus.groovy:groovy:1.8.6'
|
||||
}
|
||||
tasks.register('downloadDependencies') {
|
||||
doLast {
|
||||
def total = configurations.compileClasspath.inject (0) { sum, file ->
|
||||
sum + file.length()
|
||||
}
|
||||
println total
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue