Skip to content

Commit

Permalink
Convert AppendableMavenFileRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Dec 10, 2024
1 parent dfe52c8 commit a84bfa3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.github.jengelman.gradle.plugins.shadow.util

import com.github.jengelman.gradle.plugins.shadow.util.repo.maven.MavenFileRepository
import java.io.File

class AppendableMavenFileRepository(rootDir: File) : MavenFileRepository(rootDir) {

override fun module(groupId: String, artifactId: String, version: String): AppendableMavenFileModule {
val artifactDir = rootDir.resolve("${groupId.replace('.', '/')}/$artifactId/$version")
return AppendableMavenFileModule(artifactDir, groupId, artifactId, version)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.net.URI
/**
* A fixture for dealing with file Maven repositories.
*/
abstract class MavenFileRepository(private val rootDir: File) : MavenRepository {
abstract class MavenFileRepository(val rootDir: File) : MavenRepository {

override val uri: URI = rootDir.toURI()

Expand Down

0 comments on commit a84bfa3

Please sign in to comment.