# HG changeset patch # User Artem Tikhomirov # Date 1339604317 -7200 # Node ID 7b883bf03b14ccea8ee74db0a34f9f66ca644a3c # Parent 7dcc920e2d57d5850ee9f08ac863251460565bd3 Artifacts upload using gradle build diff -r 7dcc920e2d57 -r 7b883bf03b14 .hgignore --- a/.hgignore Tue Jun 12 23:32:12 2012 +0200 +++ b/.hgignore Wed Jun 13 18:18:37 2012 +0200 @@ -2,3 +2,5 @@ bin hg4j*.jar TEST-*.xml +build/ +.gradle/ diff -r 7dcc920e2d57 -r 7b883bf03b14 build.gradle --- a/build.gradle Tue Jun 12 23:32:12 2012 +0200 +++ b/build.gradle Wed Jun 13 18:18:37 2012 +0200 @@ -1,6 +1,6 @@ def isRelease = false - version = '0.9.0' + version = '0.9.0-SNAPSHOT' description = 'Pure Java API and Toolkit for Mercurial DVCS' group = 'org.tmatesoft.hg4j' @@ -36,18 +36,19 @@ mavenCentral() } + configurations { + deployJars + } + dependencies { testCompile 'junit:junit:4.8.2' cliCompile 'junit:junit:4.8.2' cliCompile files(sourceSets.main.output) { builtBy compileJava - } + } + deployJars "org.apache.maven.wagon:wagon-http:1.0-beta-2" } - - configurations { - deployJars - } - + def sharedMetaInf = { from project.file('COPYING') } @@ -79,6 +80,7 @@ install { configuration = configurations.deployJars +/* repositories.mavenDeployer { addFilter('f1') { artifact, file -> println file.name @@ -98,7 +100,20 @@ fname.endsWith(version) } } +*/ } + + uploadArchives { + configuration = configurations.deployJars + repositories { + mavenDeployer { + configuration = configurations.deployJars + repository(url: "http://maven.tmatesoft.com/content/repositories/snapshots/") { + authentication(userName: "", password: "") + } + } + } +} test { //