Permalink
Fetching contributors…
Cannot retrieve contributors at this time
123 lines (102 sloc) 2.91 KB
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'signing'
repositories {
mavenCentral()
}
dependencies {
compile 'log4j:log4j:1.2.17'
testCompile 'junit:junit:4.6'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task testJar(type: Jar) {
classifier = 'test'
from sourceSets.test.output
}
task testSourcesJar(type: Jar) {
classifier = 'test-sources'
from sourceSets.test.allSource
}
artifacts {
archives javadocJar, sourcesJar, testJar, testSourcesJar
}
if (project.hasProperty("signing.enabled") && project.property("signing.enabled") == "true") {
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'Tehuti'
packaging 'jar'
// optionally artifactId can be defined here
description 'Tehuti is a simple metrics library providing statistical measurement, reporting and quota functionalities.'
url 'http://tehuti.io'
scm {
connection 'scm:git:git@github.com:tehuti-io/tehuti.git'
developerConnection 'scm:git:git@github.com:tehuti-io/tehuti.git'
url 'https://github.com/tehuti-io/tehuti'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
mailingLists {
mailingList {
name 'Tehuti mailing List'
subscribe 'https://groups.google.com/forum/#!forum/tehuti'
post 'tehuti@googlegroups.com'
archive 'https://groups.google.com/forum/#!forum/tehuti'
}
}
issueManagement{
system 'GitHub'
url 'https://github.com/tehuti-io/tehuti/issues'
}
developers {
developer {
id 'FelixGV'
name 'Felix GV'
email 'fgv@linkedin.com'
}
}
}
}
}
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
}
}
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}