FtcRobotController v7.2
This commit is contained in:
39
build.gradle
39
build.gradle
@ -4,18 +4,13 @@
|
||||
* It is extraordinarily rare that you will ever need to edit this file.
|
||||
*/
|
||||
|
||||
configurations {
|
||||
doc { transitive false }
|
||||
}
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:4.0.1'
|
||||
classpath 'com.android.tools.build:gradle:7.2.0'
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +20,6 @@ allprojects {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
@ -36,34 +30,3 @@ repositories {
|
||||
dirs '../libs'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
doc 'org.firstinspires.ftc:Hardware:6.2.0'
|
||||
doc 'org.firstinspires.ftc:RobotCore:6.2.0'
|
||||
doc 'org.firstinspires.ftc:FtcCommon:6.2.0'
|
||||
doc 'org.firstinspires.ftc:OnBotJava:6.2.0'
|
||||
doc 'org.firstinspires.ftc:Inspection:6.2.0'
|
||||
}
|
||||
|
||||
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/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user