Skip to content

Commit

Permalink
Apply LICENSE and Update Sonar config
Browse files Browse the repository at this point in the history
  • Loading branch information
nuboat committed Sep 24, 2017
1 parent 4939810 commit 8c4f207
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 4 deletions.
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 Peerapat Asoktummarungsri

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.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -40,6 +40,11 @@ PStatement
val people = PStatement(FIND)
.setLong(id)
.queryOne[People]
val peoples = PStatement(FIND)
.setLong(id)
.queryList[People]
```

For fully documents, Please looking from /src/test/scala
Expand Down
8 changes: 6 additions & 2 deletions build.sbt
Expand Up @@ -21,6 +21,10 @@ parallelExecution in Test := false

crossScalaVersions := Seq("2.11.11", "2.12.3")

publishTo := Some("Artifactory Realm" at "https://artifact.billme.in.th/artifactory/billme-public")
//publishTo := Some("Artifactory Realm" at "https://artifact.billme.in.th/artifactory/billme-public")

credentials += Credentials("Artifactory Realm", "artifact.billme.in.th", "admin", "")
//credentials += Credentials("Artifactory Realm", "artifact.billme.in.th", "admin", "")

publishTo := Some(
if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging
)
2 changes: 1 addition & 1 deletion project/build.properties
@@ -1 +1 @@
sbt.version = 0.13.16
sbt.version = 0.13.16
4 changes: 3 additions & 1 deletion project/plugins.sbt
@@ -1 +1,3 @@
//addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
21 changes: 21 additions & 0 deletions sonatype.sbt
@@ -0,0 +1,21 @@
// Your profile name of the sonatype account. The default is the same with the organization value
sonatypeProfileName := "in.norbor"

// To sync with Maven central, you need to supply the following information:
publishMavenStyle := true

// License of your choice
licenses := Seq("MIT" -> url("https://raw.githubusercontent.com/nuboat/yoda-orm/master/LICENSE"))
homepage := Some(url("https://(your project url)"))
scmInfo := Some(
ScmInfo(
url("https://github.com/nuboat/yoda-orm"),
"scm:git@github.com:nuboat/yoda-orm.git"
)
)
developers := List(
Developer(id = "nuboat"
, name = "Peerapat Asoktummarungsri"
, email = "nuboat@gmail.com"
, url = url("https://github.com/nuboat"))
)

0 comments on commit 8c4f207

Please sign in to comment.