【发布时间】:2023-03-30 23:21:01
【问题描述】:
我找不到任何关于如何配置我的 Gradle 文件来为我的项目创建 JavaDoc 的文档。我已经从 SO 和博客文章中尝试了一些 sn-ps,但它们似乎都不起作用,或者它们没有提供上下文。
这是我的 Gradle 文件。添加生成 JavaDoc 的任务需要做什么?
import org.apache.tools.ant.taskdefs.condition.Os
apply plugin: 'com.android.library'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
}
【问题讨论】:
标签: android android-studio gradle android-gradle-plugin javadoc