mirror of
https://bitbucket.org/akapribot/owm-japis.git
synced 2025-04-24 14:57:11 -07:00
80 lines
2.1 KiB
Groovy
80 lines
2.1 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'signing'
|
|
|
|
sourceCompatibility = 1.5
|
|
|
|
group = 'net.aksingh'
|
|
archivesBaseName = "owm-japis"
|
|
version = '2.5.0.5'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile group: 'org.json', name: 'json', version: '20140107'
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
}
|
|
|
|
task javadocJar(type: Jar) {
|
|
classifier = 'javadoc'
|
|
from javadoc
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
artifacts {
|
|
archives javadocJar, sourcesJar
|
|
}
|
|
|
|
signing {
|
|
sign configurations.archives
|
|
}
|
|
|
|
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 'OWM JAPIs'
|
|
packaging 'jar'
|
|
description 'Java Wrapper Library for OpenWeatherMap.org Web APIs'
|
|
url 'http://code.aksingh.net/owm-japis'
|
|
|
|
scm {
|
|
connection 'scm:svn:http://foo.googlecode.com/svn/trunk/'
|
|
developerConnection 'scm:svn:https://foo.googlecode.com/svn/trunk/'
|
|
url 'http://foo.googlecode.com/svn/trunk/'
|
|
}
|
|
|
|
licenses {
|
|
license {
|
|
name 'The MIT License (MIT)'
|
|
url 'http://opensource.org/licenses/MIT'
|
|
}
|
|
}
|
|
|
|
developers {
|
|
developer {
|
|
id 'akapribot'
|
|
name 'Ashutosh Kumar Singh'
|
|
email 'me@aksingh.net'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|