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