Added scripts and fixed upload archives of snapshots

This commit is contained in:
Marcin Grzejszczak
2016-06-20 12:00:44 +02:00
parent 05265547a5
commit 9efc577fc3
3 changed files with 9 additions and 1 deletions

3
build.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
./gradlew clean build --parallel

3
deploy.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
./gradlew clean build install && ./scripts/runTests.sh && ./gradlew uploadArchives -x test

View File

@@ -38,7 +38,9 @@ afterEvaluate {
repositories {
mavenDeployer {
// POM signature
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
if (isReleaseVersion) {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
}
// Target repository
repository(url: repoUrl) {
authentication(userName: repoUser, password: repoPass)