Skip to content

Commit

Permalink
Merge pull request #2 from natura-cosmeticos/feature/dokka
Browse files Browse the repository at this point in the history
Add Dokka plugin
  • Loading branch information
fakelucaszeta authored Jul 3, 2020
2 parents 628ebc8 + 100bad9 commit e3c99fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ lint:
run-lint-rules:
./gradlew ktlintFormat

documentation:
./gradlew dokka

publish-test-lib-prod: clean
./gradlew build publish --stacktrace
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Copy and paste the file **github_credentials.properties.sample** and rename it t
**Important:** The file **github_credentials.properties** can not be committed.

### Documentation
Example usages can be found as comments on top of every class and function.
Example usages can be found as comments on top of every class and function. For a complete report with all functions run the following command:

make documentation

The report will be available at `testcommons/build/dokka/testcommons/index.html`

## How to contribute
You can contribute submitting [pull requests](https://github.com/natura-cosmeticos/Nat-Test-Commons/pulls).
Expand Down
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

buildscript {
ext.kotlin_version = '1.3.72'
ext.android_tools_gradle = '3.5.1'
ext.android_tools_gradle_version = '3.5.1'
ext.maven_gradle_version = '2.1'
ext.dokka_version = '0.10.1'

repositories {
google()
jcenter()

}
dependencies {
classpath "com.android.tools.build:gradle:$android_tools_gradle"
classpath "com.android.tools.build:gradle:$android_tools_gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "com.github.dcendents:android-maven-gradle-plugin:$maven_gradle_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}

Expand Down
1 change: 1 addition & 0 deletions testcommons/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka'
apply from: "$rootDir/tools/publish.gradle"
apply from: "$rootDir/tools/ktlint.gradle"

Expand Down

0 comments on commit e3c99fc

Please sign in to comment.