From f4f65620ec27a1f1bd79c41f7959e3c4f7d8c9ff Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Sat, 30 Apr 2016 18:58:17 -0400 Subject: [PATCH] travis: set known hosts using travis config --- .travis.yml | 3 +++ build.gradle | 3 --- private/known_hosts | 1 - upload.gradle | 6 ------ 4 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 private/known_hosts delete mode 100644 upload.gradle diff --git a/.travis.yml b/.travis.yml index 1aef3cef7..1149c248f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: java sudo: false +addons: + ssh_known_hosts: updates.jmonkeyengine.org + before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock diff --git a/build.gradle b/build.gradle index 3dc3a58a2..08a27044b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,3 @@ -import org.gradle.api.artifacts.* - buildscript { repositories { jcenter() @@ -12,7 +10,6 @@ buildscript { apply plugin: 'base' apply from: file('version.gradle') -apply from: file('upload.gradle') // This is applied to all sub projects subprojects { diff --git a/private/known_hosts b/private/known_hosts deleted file mode 100644 index 5dccff612..000000000 --- a/private/known_hosts +++ /dev/null @@ -1 +0,0 @@ -updates.jmonkeyengine.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuUaUztifV0v33iMJovEil0RPwx34RvpBXVPgfKJ/nwSvQzxo1VE9SZWzpgmX8QTvGBcRnxtm63iiHhlJe1Cid0m9SH3JSvBiR0CqHs+xRaEzjOM8/3Kp7DBZB3yuf/p3oecyCb48epbvQG7R5LhaW6JPyDkYMYebkpZuulf8d4qlbMCQlU2olWdbIO39BF8pxlcBei3n1C7jXpIgh6LFhCzNDH/kwYP3XLzuVgccy14gpiUfdeQ2JR0U/7yR1VJgTkVTBXiPUsdHfjXdIiShLq8OdtFlltZXe6nrUpFMvsi/hKcIhaZqhRz/5oAx0BPsercSHQQaKaRTqchAfd8ZeQ== diff --git a/upload.gradle b/upload.gradle deleted file mode 100644 index e28f5f41b..000000000 --- a/upload.gradle +++ /dev/null @@ -1,6 +0,0 @@ -task copySshKnownHosts(type: Copy) { - from 'private/known_hosts' - into System.properties['user.home'] + '/.ssh' -} - -uploadArchives.dependsOn copySshKnownHosts \ No newline at end of file