mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
downloading gradle-3.3-bin.zip
This commit is contained in:
@@ -19,10 +19,15 @@ task setupAndroidSdk {
|
||||
}
|
||||
|
||||
def zipFile = org.gradle.internal.os.OperatingSystem.current().familyName + ".zip"
|
||||
def gradleFile = "gradle-3.3-bin.zip"
|
||||
def archivePath = "$project.buildDir/android-sdk/" + zipFile
|
||||
def gradlePath = "$project.buildDir/android-sdk/" + gradleFile
|
||||
def outputDir ="$project.buildDir/android-sdk/prebuilts/studio/sdk"
|
||||
def outputGradle ="$project.buildDir/android-sdk/tools/external/gradle"
|
||||
outputs.dir(outputDir)
|
||||
outputs.dir(outputGradle)
|
||||
outputs.file(archivePath)
|
||||
outputs.file(gradlePath)
|
||||
|
||||
doFirst {
|
||||
download {
|
||||
@@ -30,6 +35,11 @@ task setupAndroidSdk {
|
||||
dest archivePath
|
||||
onlyIfNewer true
|
||||
}
|
||||
download {
|
||||
src "http://repo.labs.intellij.net/thirdparty/gradle/" + gradleFile
|
||||
dest gradlePath
|
||||
onlyIfNewer true
|
||||
}
|
||||
}
|
||||
doLast {
|
||||
logger.info("Unpacking android sdk into " + archivePath)
|
||||
@@ -37,5 +47,9 @@ task setupAndroidSdk {
|
||||
from zipTree(file(archivePath))
|
||||
into outputDir
|
||||
}
|
||||
copy {
|
||||
from file(gradlePath)
|
||||
into outputGradle
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user