From 808832cf7a43e2d93a11fec4f87c094b6e0a34ea Mon Sep 17 00:00:00 2001 From: Wiktor Gromniak Date: Sat, 13 Aug 2016 14:29:26 +0200 Subject: [PATCH] Version 0.1 + release gradle settings + license --- LICENSE.md | 9 +++++++ build.gradle | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..74d486a --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,9 @@ +# The MIT License (MIT) + +Copyright (c) 2016 Quedex + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/build.gradle b/build.gradle index ae4743a..2221f33 100644 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,10 @@ group 'net.quedex' -version '0.1-SNAPSHOT' +version '0.1' apply plugin: 'java' apply plugin: 'findbugs' apply plugin: 'maven' +apply plugin: 'signing' sourceCompatibility = 1.8 targetCompatibility = 1.8 @@ -49,4 +50,70 @@ findbugsTest { xml.enabled = false html.enabled = true } -} \ No newline at end of file +} + +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 = 'java-api' + packaging = 'pom' + // optionally artifactId can be defined here + description = 'Quedex Java API.' + url = 'https://github.com/wgromniak/java-api' + + scm { + connection = 'scm:git:https://github.com/wgromniak/java-api.git' + developerConnection = 'scm:git:https://github.com/wgromniak/java-api.git' + url = 'https://github.com/wgromniak/java-api' + } + + licenses { + license { + name = 'The MIT License' + url = 'https://opensource.org/licenses/MIT' + } + } + + developers { + developer { + id ='wgromniak' + name = 'Wiktor Gromniak' + email = 'wgromniak@quedex.net' + url = 'https://github.com/wgromniak' + } + } + } + } + } +}