Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/publishing/rootProject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ internal fun configureOnRootProject(project: Project) =
"NO STAGING REPOSITORY (no build service) !!"
}

val asfProjectName = fetchAsfProjectName(asfName)
val asfProjectName = "Apache Polaris"

val versionNoRc = version.toString().replace("-rc-?[0-9]+".toRegex(), "")

Expand Down
2 changes: 2 additions & 0 deletions build-logic/src/main/kotlin/publishing/util.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ internal fun <T : Any> parseJson(url: String): T {
}
}

// TODO: this function doesn't work because name attribute doesn't exist on
// public_ldap_projects.json
internal fun fetchAsfProjectName(apacheId: String): String {
val projectsAll: Map<String, Map<String, Any>> =
parseJson("https://whimsy.apache.org/public/public_ldap_projects.json")
Expand Down