-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert AppendableMavenFileRepository
- Loading branch information
Showing
3 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
...oovy/com/github/jengelman/gradle/plugins/shadow/util/AppendableMavenFileRepository.groovy
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...t/kotlin/com/github/jengelman/gradle/plugins/shadow/util/AppendableMavenFileRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters