Redesign env hierarchy

This commit is contained in:
Tad Fisher
2023-10-15 19:39:40 -07:00
parent 121e512a06
commit 6da87262a4
30 changed files with 4987 additions and 3300 deletions

View File

@@ -1,4 +1,4 @@
package org.nixos.gradle2nix.dependencygraph.model
package org.nixos.gradle2nix
import kotlinx.serialization.Serializable

View File

@@ -1,8 +1,7 @@
package org.nixos.gradle2nix.dependencygraph.model
import kotlinx.serialization.Serializable
// private const val DEFAULT_MAVEN_REPOSITORY_URL = "https://repo.maven.apache.org/maven2"
import org.nixos.gradle2nix.DependencyCoordinates
@Serializable
data class ResolvedDependency(
@@ -13,20 +12,3 @@ data class ResolvedDependency(
val repository: String?,
val dependencies: List<String>
)
//{
// fun packageUrl() =
// PackageURLBuilder
// .aPackageURL()
// .withType("maven")
// .withNamespace(coordinates.group.ifEmpty { coordinates.module }) // TODO: This is a sign of broken mapping from component -> PURL
// .withName(coordinates.module)
// .withVersion(coordinates.version)
// .also {
// if (repositoryUrl != null && repositoryUrl != DEFAULT_MAVEN_REPOSITORY_URL) {
// it.withQualifier("repository_url", repositoryUrl)
// }
// }
// .build()
// .toString()
//
//}