http -> https

This commit is contained in:
Stephane Nicoll
2019-08-18 14:07:02 +02:00
parent f083e6e5cd
commit dee5467bd1
38 changed files with 97 additions and 94 deletions

View File

@@ -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);
}

View File

@@ -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");
}

View File

@@ -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:

View File

@@ -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
}
}