Skip to content

Commit

Permalink
Revert "Convert MavenFileRepository"
Browse files Browse the repository at this point in the history
This reverts commit c15be97.
  • Loading branch information
Goooler committed Dec 11, 2024
1 parent c3fb8f1 commit 2887476
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.github.jengelman.gradle.plugins.shadow.util.repo.maven

/**
* A fixture for dealing with file Maven repositories.
*/
class MavenFileRepository implements MavenRepository {
final File rootDir

MavenFileRepository(File rootDir) {
this.rootDir = rootDir
}

@Override
URI getUri() {
return rootDir.toURI()
}

@Override
MavenFileModule module(String groupId, String artifactId, String version = '1.0') {
def artifactDir = rootDir.resolve("${groupId.replace('.', '/')}/$artifactId/$version")
return new MavenFileModule(artifactDir, groupId, artifactId, version as String)
}
}

This file was deleted.

0 comments on commit 2887476

Please sign in to comment.