Permalink
Browse files

Started configuring build for maven central compliant releases|

  • Loading branch information...
1 parent 74e3472 commit 54a42dc2375b47851e370abaad4cbd972441ac1e @tomakehurst committed Mar 19, 2012
Showing with 34 additions and 1 deletion.
  1. +34 −1 build.gradle
View
@@ -14,6 +14,7 @@ apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: com.smokejumperit.gradle.OneJarPlugin
apply plugin: 'maven'
+apply plugin: 'signing'
sourceCompatibility = 1.6
group = 'com.github.tomakehurst'
@@ -69,23 +70,42 @@ jar {
}
def releaseDirUrl
+def user
+def password
uploadArchives {
repositories {
mavenDeployer {
- repository(url: 'file:///Users/tomakehurst/dev/tomakehurst-mvn-repo/releases/')
+ repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2') {
+ authentication(userName: 'TODO' , password: 'TODO')
+ }
pom.artifactId = 'wiremock'
pom.project {
name = 'WireMock'
description = 'A tool for simulating HTTP services'
+
url = 'https://github.com/tomakehurst/wiremock'
+
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
+
+ scm {
+ connection 'https://tomakehurst@github.com/tomakehurst/wiremock.git'
+ developerConnection 'https://tomakehurst@github.com/tomakehurst/wiremock.git'
+ url 'https://tomakehurst@github.com/tomakehurst/wiremock.git'
+ }
+
+ developers {
+ developer {
+ id 'tomakehurst'
+ name 'Tom Akehurst'
+ }
+ }
}
}
}
@@ -95,6 +115,19 @@ task release {
dependsOn clean, oneJar, uploadArchives
}
+task 'capture-credentials' << {
+ def console = System.console()
+ if (console) {
+ println ''
+ user = console.readLine('> OSS username: ')
+ println ''
+ password = console.readLine('> OSS password: ')
+ println ''
+ } else {
+ logger.error "Cannot get console."
+ }
+}
+
task 'set-release-dir' << {
def console = System.console()
if (console) {

0 comments on commit 54a42dc

Please sign in to comment.