Skip to content

Commit

Permalink
Clean up setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Oct 15, 2023
1 parent fd4619a commit 53c1be7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions keeper-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,16 @@ tasks.withType<DokkaTask>().configureEach {
.toURL()
)
}

val agpBaseUrlProvider =
libs.versions.agp
.map { it.substringBeforeLast('.') }
.map { agpBaseVersion ->
"https://developer.android.com/reference/tools/gradle-api/$agpBaseVersion"
}
externalDocumentationLink {
packageListUrl.set(
URI("https://developer.android.com/reference/tools/gradle-api/8.1/package-list").toURL()
)
url.set(URI("https://developer.android.com/reference/tools/gradle-api/8.1/classes").toURL())
packageListUrl.set(agpBaseUrlProvider.map { "$it/package-list" }.map { URI(it).toURL() })
url.set(agpBaseUrlProvider.map { "$it/classes" }.map { URI(it).toURL() })
}
}
}
Expand Down

0 comments on commit 53c1be7

Please sign in to comment.