From 8cdf6285cf615b3bcda0d7144df2776562d9b205 Mon Sep 17 00:00:00 2001 From: gered Date: Wed, 30 Apr 2014 18:35:51 -0400 Subject: [PATCH] add maven artifact deployment action --- build.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build.gradle b/build.gradle index 9e0cd43..4f00a72 100644 --- a/build.gradle +++ b/build.gradle @@ -10,6 +10,10 @@ ext.gdxVersion = "1.0.0" sourceCompatibility = 1.6 +configurations { + deployerJars +} + repositories { mavenCentral() maven { url "http://oss.sonatype.org/content/repositories/releases/" } @@ -19,6 +23,17 @@ repositories { dependencies { compile "com.badlogicgames.gdx:gdx:$gdxVersion" compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion" + deployerJars "org.apache.maven.wagon:wagon-ssh:2.2" +} + +uploadArchives { + repositories.mavenDeployer { + configuration = configurations.deployerJars + uniqueVersion = false + repository(url: mavenDeployUrl) { + authentication(userName: mavenDeployUser, privateKey: mavenDeployPrivateKeyFile) + } + } } eclipse.project {