Skip to content

Commit

Permalink
Fix import of MavenArtifactRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd authored Jul 14, 2022
1 parent 1417658 commit b3b5a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If organizational security policy or network configuration forbids this, then yo
Copy this script to a file named `init.gradle` into the <user home>/.gradle directory.
Modify the `enterpriseRepository` value as appropriate for your situation.
```groovy
import org.gradle.api.internal.artifacts.repositories.MavenLocalArtifactRepository
import org.gradle.api.artifacts.repositories.MavenArtifactRepository
// Replace with your company's artifact repository
String enterpriseRepository = "https://repo.maven.apache.org/maven2/"
Expand All @@ -41,7 +41,7 @@ String user = null;
String pass = null;
boolean isAcceptable(MavenArtifactRepository repo) {
return repo instanceof MavenLocalArtifactRepository
return repo instanceof MavenArtifactRepository
|| repo.getUrl().toString().contains(enterpriseRepository)
}
Expand Down

0 comments on commit b3b5a32

Please sign in to comment.