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:
parent
a6e69db40a
commit
629c7ef4dd
2 changed files with 32 additions and 74 deletions
|
@ -9,11 +9,8 @@ buildscript {
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
apply plugin: 'com.github.dcendents.android-maven'
|
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
//apply plugin: 'maven-publish'
|
apply plugin: 'com.github.dcendents.android-maven'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 24
|
compileSdkVersion 24
|
||||||
|
@ -46,29 +43,4 @@ repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply from: 'publish.gradle'
|
||||||
// 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'
|
|
||||||
|
|
|
@ -1,19 +1,4 @@
|
||||||
|
// build a jar with source files
|
||||||
group "$ext_groupId"
|
|
||||||
version "$ext_version"
|
|
||||||
|
|
||||||
publishing {
|
|
||||||
publications {
|
|
||||||
MyPublication(MavenPublication) {
|
|
||||||
from components.java
|
|
||||||
artifact sourcesJar
|
|
||||||
groupId "$ext_groupId"
|
|
||||||
artifactId "$ext_artifactId"
|
|
||||||
version "$ext_version"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task sourcesJar(type: Jar) {
|
task sourcesJar(type: Jar) {
|
||||||
from android.sourceSets.main.java.srcDirs
|
from android.sourceSets.main.java.srcDirs
|
||||||
classifier = 'sources'
|
classifier = 'sources'
|
||||||
|
@ -33,34 +18,35 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
archives javadocJar
|
|
||||||
archives sourcesJar
|
archives sourcesJar
|
||||||
|
archives javadocJar
|
||||||
}
|
}
|
||||||
|
|
||||||
bintray {
|
//
|
||||||
user = System.getenv('BINTRAY_USER')
|
//bintray {
|
||||||
key = System.getenv('BINTRAY_API_KEY')
|
// user = System.getenv('BINTRAY_USER')
|
||||||
|
// key = System.getenv('BINTRAY_API_KEY')
|
||||||
dryRun = false
|
//
|
||||||
publish = true
|
// dryRun = false
|
||||||
|
// publish = true
|
||||||
publications = ['MyPublication']
|
//
|
||||||
pkg {
|
// publications = ['MyPublication']
|
||||||
repo = 'maven'
|
// pkg {
|
||||||
name = "$ext_artifactId"
|
// repo = 'maven'
|
||||||
licenses = ['Apache-2.0']
|
// name = "$ext_artifactId"
|
||||||
labels = ['android', 'gradle-plugin']
|
// licenses = ['Apache-2.0']
|
||||||
|
// labels = ['android', 'gradle-plugin']
|
||||||
publicDownloadNumbers = true
|
//
|
||||||
vcsUrl = "$ext_vcsUrl"
|
// publicDownloadNumbers = true
|
||||||
|
// vcsUrl = "$ext_vcsUrl"
|
||||||
version {
|
//
|
||||||
name = "$ext_version"
|
// version {
|
||||||
desc = "$ext_description"
|
// name = "$ext_version"
|
||||||
released = new Date()
|
// desc = "$ext_description"
|
||||||
gpg {
|
// released = new Date()
|
||||||
sign = true // Determines whether to GPG sign the files.
|
// gpg {
|
||||||
}
|
// sign = true // Determines whether to GPG sign the files.
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue