mirror of
https://github.com/ethauvin/kotlin-pluralizer.git
synced 2025-04-25 08:47:12 -07:00
jitpack
This commit is contained in:
parent
f28387ed16
commit
922e6fc8bb
3 changed files with 49 additions and 11 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue