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

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.spring.initializr</groupId>

View File

@@ -1,7 +1,7 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 https://maven.apache.org/xsd/assembly-1.1.3.xsd">
<id>snippets</id>
<formats>
<format>zip</format>

View File

@@ -1,7 +1,7 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 https://maven.apache.org/xsd/assembly-1.1.3.xsd">
<id>stubs</id>
<formats>
<format>jar</format>

View File

@@ -49,11 +49,11 @@ class CloudfoundryEnvironmentPostProcessorTests {
@Test
void parseUri() {
this.environment.setProperty("vcap.services.stats-index.credentials.uri",
"http://example.com/bar/biz?param=one");
"https://example.com/bar/biz?param=one");
this.postProcessor.postProcessEnvironment(this.environment, this.application);
assertThat(this.environment.getProperty("initializr.stats.elastic.uri"))
.isEqualTo("http://example.com/bar/biz?param=one");
.isEqualTo("https://example.com/bar/biz?param=one");
assertThat(this.environment.getProperty("initializr.stats.elastic.username")).isNull();
assertThat(this.environment.getProperty("initializr.stats.elastic.password")).isNull();
}

View File

@@ -43,7 +43,7 @@ class DependencyMetadataJsonMapperTests {
d.setBom("my-bom");
Repository repository = new Repository();
repository.setName("foo-repo");
repository.setUrl(new URL("http://example.com/foo"));
repository.setUrl(new URL("https://example.com/foo"));
BillOfMaterials bom = BillOfMaterials.create("org.foo", "foo-bom", "1.0.0.RELEASE");
DependencyMetadata metadata = new DependencyMetadata(Version.parse("1.2.0.RELEASE"),
Collections.singletonMap(d.getId(), d), Collections.singletonMap("repo-id", repository),

View File

@@ -304,7 +304,6 @@ class MainControllerIntegrationTests extends AbstractInitializrControllerIntegra
void doNotForceSslByDefault() {
ResponseEntity<String> response = invokeHome("curl/1.2.4", "*/*");
String body = response.getBody();
assertThat(body).as("Must not force https").contains("http://start.spring.io/");
assertThat(body).as("Must not force https").doesNotContain("https://");
}

View File

@@ -68,17 +68,17 @@
"repositories": {
"my-api-repo-1": {
"name": "repo1",
"url": "http://example.com/repo1",
"url": "https://example.com/repo1",
"snapshotsEnabled": false
},
"my-api-repo-2": {
"name": "repo2",
"url": "http://example.com/repo2",
"url": "https://example.com/repo2",
"snapshotsEnabled": false
},
"my-api-repo-3": {
"name": "repo3",
"url": "http://example.com/repo3",
"url": "https://example.com/repo3",
"snapshotsEnabled": false
},
"spring-milestones": {

View File

@@ -3,7 +3,7 @@
"repositories": {
"my-api-repo-1": {
"name": "repo1",
"url": "http://example.com/repo1",
"url": "https://example.com/repo1",
"snapshotEnabled": false
}
},

View File

@@ -3,7 +3,7 @@
"repositories": {
"my-api-repo-2": {
"name": "repo2",
"url": "http://example.com/repo2",
"url": "https://example.com/repo2",
"snapshotEnabled": false
}
},