mirror of
https://bitbucket.org/akapribot/owm-japis.git
synced 2025-04-24 23:07:12 -07:00
2.5.0.3 is now there on Maven repo. Hurray!
This commit is contained in:
parent
a573686f24
commit
b7562181ae
4 changed files with 103 additions and 23 deletions
76
build.gradle
76
build.gradle
|
@ -1,23 +1,79 @@
|
|||
apply plugin: 'java'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'signing'
|
||||
|
||||
sourceCompatibility = 1.5
|
||||
|
||||
group = 'net.aksingh.owmjapis'
|
||||
group = 'net.aksingh'
|
||||
archivesBaseName = "owm-japis"
|
||||
version = '2.5.0.3'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testCompile group: 'junit', name: 'junit', version: '4.+'
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue