From 1690cc5e0fd8992ec677ed106cccc0c425e6d354 Mon Sep 17 00:00:00 2001 From: Adam Murdoch Date: Sun, 16 Sep 2012 19:48:20 +1000 Subject: [PATCH] Publish source and javadoc, incremented version. --- build.gradle | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8027d13..9f7b7dd 100755 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ allprojects { } group = 'net.rubygrapefruit' - version = '0.1' + version = '0.2' sourceCompatibility = 1.5 targetCompatibility = 1.5 @@ -172,6 +172,21 @@ javadoc { exclude '**/internal/**' } +task sourceZip(type: Zip) { + from sourceSets.main.allSource + classifier = 'source' +} + +task javadocZip(type: Zip) { + from javadoc + classifier = 'javadoc' +} + +artifacts { + archives sourceZip + archives javadocZip +} + def mainPom = uploadArchives.repositories.mavenDeployer.pom mainPom.groupId = project.group mainPom.artifactId = jar.baseName