This repository was archived by the owner on Jun 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22apply plugin : ' kotlin-android'
33apply plugin : ' kotlin-android-extensions'
4+ apply plugin : ' com.github.dcendents.android-maven'
5+
6+ group= ' moe.sunjiao'
47
58android {
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+ }
You can’t perform that action at this time.
0 commit comments