maven.gradle 905 B

1234567891011121314151617181920212223242526
  1. ext {
  2. REPOSITORY_HOME = 'http://nexus.galaksiodatanubo.work/repository'
  3. REPOSITORY_URL = REPOSITORY_HOME + "/maven-public/"
  4. REPOSITORY_RELEASE_URL = REPOSITORY_HOME + "/maven-releases/"
  5. REPOSITORY_SNAPSHOT_URL = REPOSITORY_HOME + "/maven-snapshots/"
  6. }
  7. allprojects {
  8. repositories {
  9. all {ArtifactRepository repo ->
  10. def url = repo.url.toString()
  11. if (repo instanceof MavenArtifactRepository && (url.startsWith("https://repo1.maven.org/maven2") || url.startsWith('https://jcenter.bintray.com/'))) {
  12. project.logger.warn "Repository ${repo.url} removed."
  13. remove repo
  14. }
  15. }
  16. mavenLocal()
  17. maven {
  18. allowInsecureProtocol = true
  19. url REPOSITORY_URL
  20. }
  21. maven {
  22. allowInsecureProtocol = true
  23. url REPOSITORY_SNAPSHOT_URL
  24. }
  25. }
  26. }