add maven artifact deployment action

This commit is contained in:
Gered 2014-04-30 18:35:51 -04:00
parent f65be66c1a
commit 8cdf6285cf

View file

@ -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 {