mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
http -> https
This commit is contained in:
@@ -120,13 +120,13 @@ class InitializrMetadataBuilderTests {
|
||||
Repository myRepo = repositories.get("my-repo");
|
||||
assertThat(myRepo).isNotNull();
|
||||
assertThat(myRepo.getName()).isEqualTo("my repo");
|
||||
assertThat(myRepo.getUrl()).isEqualTo(new URL("http://example.com/my"));
|
||||
assertThat(myRepo.getUrl()).isEqualTo(new URL("https://example.com/my"));
|
||||
assertThat(myRepo.isSnapshotsEnabled()).isEqualTo(true);
|
||||
|
||||
Repository anotherRepo = repositories.get("another-repo");
|
||||
assertThat(anotherRepo).isNotNull();
|
||||
assertThat(anotherRepo.getName()).isEqualTo("another repo");
|
||||
assertThat(anotherRepo.getUrl()).isEqualTo(new URL("http://example.com/another"));
|
||||
assertThat(anotherRepo.getUrl()).isEqualTo(new URL("https://example.com/another"));
|
||||
assertThat(anotherRepo.isSnapshotsEnabled()).isEqualTo(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ class InitializrMetadataTests {
|
||||
foo.setRepository("foo-repo");
|
||||
addTestDependencyGroup(metadata, foo);
|
||||
metadata.getConfiguration().getEnv().getRepositories().put("my-repo",
|
||||
new Repository("repo", new URL("http://example.com/repo"), true));
|
||||
new Repository("repo", new URL("https://example.com/repo"), true));
|
||||
assertThatExceptionOfType(InvalidInitializrMetadataException.class).isThrownBy(metadata::validate)
|
||||
.withMessageContaining("foo-repo").withMessageContaining("my-repo");
|
||||
}
|
||||
|
||||
@@ -32,13 +32,13 @@ initializr:
|
||||
repositories:
|
||||
my-api-repo-1:
|
||||
name: repo1
|
||||
url: http://example.com/repo1
|
||||
url: https://example.com/repo1
|
||||
my-api-repo-2:
|
||||
name: repo2
|
||||
url: http://example.com/repo2
|
||||
url: https://example.com/repo2
|
||||
my-api-repo-3:
|
||||
name: repo3
|
||||
url: http://example.com/repo3
|
||||
url: https://example.com/repo3
|
||||
dependencies:
|
||||
- name: Core
|
||||
content:
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
"repositories": {
|
||||
"my-repo": {
|
||||
"name": "my repo",
|
||||
"url": "http://example.com/my",
|
||||
"url": "https://example.com/my",
|
||||
"snapshotsEnabled": true
|
||||
},
|
||||
"another-repo": {
|
||||
"name": "another repo",
|
||||
"url": "http://example.com/another",
|
||||
"url": "https://example.com/another",
|
||||
"snapshotsEnabled": false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user