diff --git a/BUILD.md b/BUILD.md index 4f5d3a9..8b80527 100644 --- a/BUILD.md +++ b/BUILD.md @@ -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 diff --git a/README.md b/README.md index 41c30e6..d389fa9 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: @@ -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: diff --git a/build.gradle b/build.gradle index 8643a6b..08c3808 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { @@ -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'