Skip to content

Commit

Permalink
Version 0.1
Browse files Browse the repository at this point in the history
+ release gradle settings
+ license
  • Loading branch information
Wiktor Gromniak committed Aug 13, 2016
1 parent 9736907 commit 808832c
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 2 deletions.
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -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.
71 changes: 69 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -49,4 +50,70 @@ findbugsTest {
xml.enabled = false
html.enabled = true
}
}
}

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'
}
}
}
}
}
}

0 comments on commit 808832c

Please sign in to comment.