Skip to content

Commit

Permalink
Finally have mvn repo working
Browse files Browse the repository at this point in the history
  • Loading branch information
Manni Wood committed May 20, 2014
1 parent 973fd28 commit 310abd1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
5 changes: 2 additions & 3 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ To create the maven artifacts:
```
./gradlew uploadArchives
```
which will make a little local mvn repo at /tmp/myRepo.
which will upload them up to BinTray.
Copy that directory structure to the mvn directory
of your web server, and you will be good to go.
You will need the username and BinTray API Key in ~/.gradle/gradle.properties
## Testing
Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ As we all know, PostgreSQL has a rich, extensible type system.
MyBatis, much to its credit, can have new type handlers plugged
into it.

As of this writing (1.0-SNAPSHOT version), MMPT has a UUID
As of this writing (version 1.1), MMPT has a UUID
type handler, and an IntegerArray type handler.

PostgreSQL allows storing any type as an array, so as I grow
Expand All @@ -17,8 +17,6 @@ array types.

## Installation

(COMING SOON. MVN REPO NOT SET UP YET.)

For Gradle users, your "repositories" section will have
the Manni Wood repository added to it:

Expand All @@ -27,23 +25,20 @@ repositories {
mavenCentral()
maven {
name = 'Manni Wood'
url = 'http://www.manniwood.com/mvn'
url = 'http://dl.bintray.com/manniwood/maven'
}
}
```
and then your dependencies section will have this entry:
```
dependencies {
compile 'com.manniwood:mmpt:1.0'
compile 'com.manniwood:mmpt:1.1'
// other dependencies here, obviously
}
```

## Use

Put the MMPT jar in your classpath. (I know, I haven't made
a jar available yet on github, but I will soon.)

In the typeAliases section of your MyBatis configuration file,
put the following type aliases (this part is optional, but
it will save you typing later:
Expand Down
11 changes: 9 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'java'
apply plugin: 'eclipse'

group = 'com.manniwood'
version = '1.1-SNAPSHOT'
version = '1.1'
description = "Manni's MyBatis PostgreSQL Tpes"

repositories {
Expand Down Expand Up @@ -42,7 +42,14 @@ artifacts {
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file:///$buildDir/repo")
// If you want to make a local mvn dir layout, use this next line:
// repository(url: "file:///$buildDir/repo")

// This uploads to BinTray. You need need mwBintrayUser and
// mwBinTrayApiKey defined in ~/.gradle/gradle.properties
repository(url: "https://api.bintray.com/maven/manniwood/maven/mmpt") {
authentication(userName: mwBintrayUser, password: mwBintrayApiKey)
}
pom {
project {
inceptionYear '2014'
Expand Down

0 comments on commit 310abd1

Please sign in to comment.