Skip to content

Commit

Permalink
Merge pull request #8 from z3ntu/new-version
Browse files Browse the repository at this point in the history
Update dokka and publishing settings
  • Loading branch information
mgursch authored May 7, 2021
2 parents 05c573b + 24564b3 commit 5a8f55b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# A3InAppUpdater

[![Build Status](https://travis-ci.org/allaboutapps/InAppUpdater.svg?branch=master)](https://travis-ci.org/allaboutapps/InAppUpdater)
[![Build Status](https://travis-ci.org/allaboutapps/A3InAppUpdater.svg?branch=master)](https://travis-ci.org/allaboutapps/A3InAppUpdater)
[ ![Download](https://api.bintray.com/packages/allaboutapps/A3-Android/at.allaboutapps.inappupdater.a3inappupdater/images/download.svg) ](https://bintray.com/allaboutapps/A3-Android/at.allaboutapps.inappupdater.a3inappupdater/_latestVersion)


Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.18"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.4.30"
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
63 changes: 28 additions & 35 deletions inappupdater/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "com.jfrog.bintray" version "1.8.1"
id 'digital.wup.android-maven-publish' version '3.6.2'
id "com.jfrog.bintray" version "1.8.5"
id 'maven-publish'
}


Expand All @@ -10,7 +10,7 @@ version = '1.2.1'
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'org.jetbrains.dokka-android'
apply plugin: 'org.jetbrains.dokka'

android {
compileSdkVersion 30
Expand All @@ -22,7 +22,7 @@ android {
versionName "1.0"

// the name of the artifact
archivesBaseName = 'a3inappupdater' // e.g. a3webview
archivesBaseName = 'a3inappupdater'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down Expand Up @@ -70,25 +70,29 @@ bintray {
publications = ['mavenAar']
}

publishing {
publications {
mavenAar(MavenPublication) {
from components.android
pom {
name = 'InAppUpdater'
description = 'Android library to simplify In App Update process'
url = 'https://github.com/allaboutapps/InAppUpdater'
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
afterEvaluate {
publishing {
publications {
mavenAar(MavenPublication) {
from components.release
artifact generateJavadocsJar
artifact generateSourcesJar
pom {
name = 'InAppUpdater'
description = 'Android library to simplify In App Update process'
url = 'https://github.com/allaboutapps/InAppUpdater'
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
}
developers {
developer {
id = 'MAG'
name = 'Markus Gursch'
email = 'markus.gursch@allaboutapps.at'
developers {
developer {
id = 'MAG'
name = 'Markus Gursch'
email = 'markus.gursch@allaboutapps.at'
}
}
}
}
Expand All @@ -100,14 +104,9 @@ task javadoc(type: Javadoc) {
excludes = ['**/*.kt'] // Exclude all kotlin files from javadoc file.
}

dokka {
outputFormat = 'html'
outputDirectory = javadoc.destinationDir
}

task generateJavadocsJar(type: Jar, dependsOn: dokka) {
task generateJavadocsJar(type: Jar, dependsOn: dokkaJavadoc) {
classifier = 'javadoc'
from dokka.outputDirectory
from dokkaJavadoc.outputDirectory
}

task generateSourcesJar(type: Jar) {
Expand All @@ -121,10 +120,6 @@ task generateJavadocs(type: Javadoc) {
.join(File.pathSeparator))
}

artifacts {
archives generateSourcesJar, generateJavadocsJar
}

android {
lintOptions {
abortOnError false
Expand All @@ -144,5 +139,3 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

apply plugin: 'digital.wup.android-maven-publish'

0 comments on commit 5a8f55b

Please sign in to comment.