Publish source and javadoc, incremented version.
This commit is contained in:
17
build.gradle
17
build.gradle
@@ -16,7 +16,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = 'net.rubygrapefruit'
|
group = 'net.rubygrapefruit'
|
||||||
version = '0.1'
|
version = '0.2'
|
||||||
|
|
||||||
sourceCompatibility = 1.5
|
sourceCompatibility = 1.5
|
||||||
targetCompatibility = 1.5
|
targetCompatibility = 1.5
|
||||||
@@ -172,6 +172,21 @@ javadoc {
|
|||||||
exclude '**/internal/**'
|
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
|
def mainPom = uploadArchives.repositories.mavenDeployer.pom
|
||||||
mainPom.groupId = project.group
|
mainPom.groupId = project.group
|
||||||
mainPom.artifactId = jar.baseName
|
mainPom.artifactId = jar.baseName
|
||||||
|
|||||||
Reference in New Issue
Block a user