mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-13 00:10:38 -05:00
Redesign env hierarchy
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package org.nixos.gradle2nix.dependencygraph.model
|
||||
package org.nixos.gradle2nix
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
|
||||
@@ -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()
|
||||
//
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user