2021-10-19 17:53:06 -05:00
|
|
|
/**
|
|
|
|
* Top-level build file for ftc_app project.
|
|
|
|
*
|
|
|
|
* It is extraordinarily rare that you will ever need to edit this file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
doc { transitive false }
|
|
|
|
}
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
dependencies {
|
2022-11-05 13:31:29 -05:00
|
|
|
classpath 'com.android.tools.build:gradle:7.3.1'
|
2021-10-19 17:53:06 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is now required because aapt2 has to be downloaded from the
|
|
|
|
// google() repository beginning with version 3.2 of the Android Gradle Plugin
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
|
2022-09-22 21:10:05 -05:00
|
|
|
// flatDir {
|
|
|
|
// dirs '../libs'
|
|
|
|
// }
|
2021-10-19 17:53:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-09-22 20:55:19 -05:00
|
|
|
doc 'org.firstinspires.ftc:Hardware:8.0.0'
|
|
|
|
doc 'org.firstinspires.ftc:RobotCore:8.0.0'
|
|
|
|
doc 'org.firstinspires.ftc:FtcCommon:8.0.0'
|
|
|
|
doc 'org.firstinspires.ftc:OnBotJava:8.0.0'
|
|
|
|
doc 'org.firstinspires.ftc:Inspection:8.0.0'
|
2021-10-19 17:53:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
task extractJavadoc {
|
|
|
|
doLast {
|
|
|
|
def componentIds = configurations.doc.incoming.resolutionResult.allDependencies.collect { it.selected.id }
|
|
|
|
|
|
|
|
def result = dependencies.createArtifactResolutionQuery()
|
|
|
|
.forComponents(componentIds)
|
|
|
|
.withArtifacts(JvmLibrary, SourcesArtifact, JavadocArtifact)
|
|
|
|
.execute()
|
|
|
|
|
|
|
|
for (component in result.resolvedComponents) {
|
|
|
|
component.getArtifacts(JavadocArtifact).each { artifact ->
|
|
|
|
def version = artifact.identifier.componentIdentifier.version
|
|
|
|
def libName = artifact.identifier.componentIdentifier.moduleIdentifier.name
|
|
|
|
copy {
|
|
|
|
from zipTree(artifact.file)
|
|
|
|
into "docs/$version/$libName/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|