Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit b40678b

Browse files
committed
add javadoc
1 parent a76306f commit b40678b

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ buildscript {
1212
dependencies {
1313
classpath 'com.android.tools.build:gradle:3.6.3'
1414
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
15+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
16+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
1517

1618
// NOTE: Do not place your application dependencies here; they belong
1719
// in the individual module build.gradle files

osmunda/build.gradle

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: 'com.github.dcendents.android-maven'
5+
6+
group='moe.sunjiao'
47

58
android {
69
compileSdkVersion 29
@@ -57,3 +60,29 @@ dependencies {
5760

5861
implementation 'org.osmdroid:osmdroid-android:6.1.6'
5962
}
63+
64+
tasks.withType(JavaCompile) {
65+
options.encoding = "UTF-8"
66+
}
67+
68+
task sourcesJar(type: Jar) {
69+
from android.sourceSets.main.java.srcDirs
70+
archiveClassifier = 'sources'
71+
}
72+
73+
task javadoc(type: Javadoc) {
74+
failOnError false
75+
source = android.sourceSets.main.java.sourceFiles
76+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
77+
classpath += configurations.compile
78+
}
79+
80+
task javadocJar(type: Jar, dependsOn: javadoc) {
81+
archiveClassifier = 'javadoc'
82+
from javadoc.destinationDir
83+
}
84+
85+
artifacts {
86+
archives sourcesJar
87+
archives javadocJar
88+
}

0 commit comments

Comments
 (0)