diff --git a/README.md b/README.md index 08acb3f..3b03346 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -# kotlin-pluralizer [![Build Status](https://travis-ci.org/cesarferreira/kotlin-pluralizer.svg?branch=master)](https://travis-ci.org/cesarferreira/kotlin-pluralizer) +# kotlin-pluralizer [![Build Status](https://travis-ci.org/cesarferreira/kotlin-pluralizer.svg?branch=master)](https://travis-ci.org/cesarferreira/kotlin-pluralizer) [![Release](https://jitpack.io/v/cesarferreira/kotlin-pluralizer.svg)](https://jitpack.io/#cesarferreira/kkotlin-pluralizer) + + **kotlin extension** to **pluralize** and **singularize** strings! @@ -24,7 +26,15 @@ ## Install -TODO +```groovy +repositories { + jcenter() + maven { url "https://jitpack.io" } + } + dependencies { + compile 'com.github.jitpack:gradle-simple:1.0' + } + ``` ### Show some :heart: [![GitHub followers](https://img.shields.io/github/followers/cesarferreira.svg?style=social&label=Follow)](https://github.com/cesarferreira/kotlin-pluralizer) [![Twitter Follow](https://img.shields.io/twitter/follow/cesarmcferreira.svg?style=social)](https://twitter.com/cesarmcferreira) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 3176cad..b5fa945 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sun Sep 04 17:43:16 WEST 2016 +#Sun Sep 04 18:06:35 WEST 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-all.zip diff --git a/library/build.gradle b/library/build.gradle index 1f197fb..75b08e1 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,17 +1,19 @@ buildscript { repositories { - jcenter() - mavenLocal() + mavenCentral() + } + + dependencies { + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' } } -plugins { - id 'com.jfrog.bintray' version '1.6' -} - apply plugin: 'com.android.library' +apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'kotlin-android' -apply plugin: 'maven-publish' +//apply plugin: 'maven-publish' + + android { compileSdkVersion 24 @@ -36,6 +38,7 @@ android { } dependencies { + compile gradleApi() compile 'com.android.support:appcompat-v7:24.2.0' compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } @@ -43,4 +46,29 @@ repositories { mavenCentral() } + +// build a jar with source files +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' +} + +task javadoc(type: Javadoc) { + failOnError false + source = android.sourceSets.main.java.sourceFiles + classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) + classpath += configurations.compile +} + +// build a jar with javadoc +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +artifacts { + archives sourcesJar + archives javadocJar +} + //apply from: 'publish.gradle'