|
1 | 1 | apply plugin: 'com.android.library' |
2 | 2 | apply plugin: 'kotlin-android' |
3 | | -apply plugin: 'maven' |
4 | | -apply plugin: 'maven-publish' |
5 | | -apply plugin: 'com.github.dcendents.android-maven' |
6 | | -apply plugin: 'org.jetbrains.dokka-android' |
| 3 | +apply plugin: 'com.vanniktech.maven.publish' |
7 | 4 |
|
8 | 5 | ext { |
9 | 6 | GROUP = 'com.algolia.instantsearch' |
|
19 | 16 | LICENSE = 'MIT' |
20 | 17 | LICENSE_URL = "http://www.opensource.org/licenses/mit-license.php" |
21 | 18 |
|
22 | | - VERSION = '1.0.0' |
| 19 | + VERSION = '1.1.0' |
23 | 20 | VERSION_DESC = "$NAME - v$VERSION" |
24 | 21 | } |
25 | 22 |
|
@@ -68,34 +65,11 @@ dependencies { |
68 | 65 | testImplementation dependency_jvm.kotlin_test_junit |
69 | 66 | } |
70 | 67 |
|
71 | | -dokka { |
72 | | - reportUndocumented = false |
73 | | - outputFormat = 'html' |
74 | | - outputDirectory = "$buildDir/javadoc" |
75 | | -} |
76 | | - |
77 | | -tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { |
78 | | - kotlinOptions.freeCompilerArgs += ['-module-name', GROUP + "." + BASENAME] |
79 | | -} |
80 | | - |
81 | | -task sourcesJar(type: Jar) { |
82 | | - dependsOn "assembleRelease" |
83 | | - classifier "sources" |
84 | | - from android.sourceSets.main.java.srcDirs |
85 | | -} |
86 | | - |
87 | | -task javadocJar(type: Jar, dependsOn: dokka) { |
88 | | - classifier "javadoc" |
89 | | - from "$buildDir/javadoc" |
90 | | -} |
91 | | - |
92 | | -// add sources jar tasks as artifacts |
93 | | -artifacts { |
94 | | - archives sourcesJar |
95 | | - archives javadocJar |
96 | | - archives file: new File("${project.buildDir}/outputs/aar/${project.name}-release.aar"), |
97 | | - name: "${project.name}-release.aar", |
98 | | - type: "aar" |
99 | | -} |
| 68 | +//tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { |
| 69 | +// kotlinOptions.freeCompilerArgs += ['-module-name', GROUP + "." + BASENAME] |
| 70 | +//} |
100 | 71 |
|
101 | | -apply from: "https://raw.githubusercontent.com/algolia/instantsearch-mobile-tools/7b9e6e1cc28f12497b88b6868ab99d5884f7c86b/gradle/bintrayv.gradle" |
| 72 | +//task javadocJar(type: Jar, dependsOn: dokka) { |
| 73 | +// classifier "javadoc" |
| 74 | +// from "$buildDir/javadoc" |
| 75 | +//} |
0 commit comments