1
0
Fork 0
mirror of https://github.com/ethauvin/kotlin-pluralizer.git synced 2025-04-25 00:37:12 -07:00

I see the problem now!

This commit is contained in:
Cesar Ferreira 2016-09-04 19:02:32 +01:00
parent a6e69db40a
commit 629c7ef4dd
2 changed files with 32 additions and 74 deletions

View file

@ -9,11 +9,8 @@ buildscript {
}
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'kotlin-android'
//apply plugin: 'maven-publish'
apply plugin: 'com.github.dcendents.android-maven'
android {
compileSdkVersion 24
@ -46,29 +43,4 @@ 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'
apply from: 'publish.gradle'

View file

@ -1,19 +1,4 @@
group "$ext_groupId"
version "$ext_version"
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
groupId "$ext_groupId"
artifactId "$ext_artifactId"
version "$ext_version"
}
}
}
// build a jar with source files
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
@ -33,34 +18,35 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
}
artifacts {
archives javadocJar
archives sourcesJar
archives javadocJar
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
dryRun = false
publish = true
publications = ['MyPublication']
pkg {
repo = 'maven'
name = "$ext_artifactId"
licenses = ['Apache-2.0']
labels = ['android', 'gradle-plugin']
publicDownloadNumbers = true
vcsUrl = "$ext_vcsUrl"
version {
name = "$ext_version"
desc = "$ext_description"
released = new Date()
gpg {
sign = true // Determines whether to GPG sign the files.
}
}
}
}
//
//bintray {
// user = System.getenv('BINTRAY_USER')
// key = System.getenv('BINTRAY_API_KEY')
//
// dryRun = false
// publish = true
//
// publications = ['MyPublication']
// pkg {
// repo = 'maven'
// name = "$ext_artifactId"
// licenses = ['Apache-2.0']
// labels = ['android', 'gradle-plugin']
//
// publicDownloadNumbers = true
// vcsUrl = "$ext_vcsUrl"
//
// version {
// name = "$ext_version"
// desc = "$ext_description"
// released = new Date()
// gpg {
// sign = true // Determines whether to GPG sign the files.
// }
// }
// }
//}