forked from mattbishop/gemini.blueprint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuploadGeminiBlueprint.gradle
More file actions
35 lines (32 loc) · 1.39 KB
/
uploadGeminiBlueprint.gradle
File metadata and controls
35 lines (32 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
plugins { id 'org.hidetake.ssh' version '1.1.4' }
remotes {
eclipseDotOrg {
host = ECLIPSE_ORG_FTP_HOST
user = ECLIPSE_ORG_FTP_USER
identity = file(System.properties['user.home'] + "/.ssh/${ECLIPSE_ORG_FTP_IDENTITY}")
knownHosts = file(System.properties['user.home'] + "/.ssh/known_hosts")
}
}
def version = '2.0.0.M03'
def groupId = 'org.eclipse.virgo.mirrored'
def mirrorPath = ECLIPSE_ORG_FTP_MIRROR_PATH
task uploadGeminiBlueprint << {
[
"io",
"core",
"extender"
].each { module ->
println "Uploading ${module} to ${remotes.eclipseDotOrg.host}..."
def modulePath = "${groupId}/org.eclipse.gemini.blueprint.${module}/${version}"
ssh.run {
session(remotes.eclipseDotOrg) {
execute "mkdir -p ${mirrorPath}/${modulePath}"
put from: "${buildDir}/${modulePath}/ivy-${version}.xml", into: "${mirrorPath}/${modulePath}"
put from: "${buildDir}/${modulePath}/ivy-${version}.xml.sha1", into: "${mirrorPath}/${modulePath}"
put from: "${buildDir}/${modulePath}/org.eclipse.gemini.blueprint.${module}-${version}.jar", into: "${mirrorPath}/${modulePath}"
put from: "${buildDir}/${modulePath}/org.eclipse.gemini.blueprint.${module}-${version}.jar.sha1", into: "${mirrorPath}/${modulePath}"
}
}
println "done."
}
}