Skip to content

Commit

Permalink
Merge pull request Azure#281 from RikkiGibson/MigratePom
Browse files Browse the repository at this point in the history
Migrate to v2 package and add v2 to groupId in POMs
  • Loading branch information
RikkiGibson authored Oct 30, 2017
2 parents eb7ebcc + 70c635f commit 057efef
Show file tree
Hide file tree
Showing 177 changed files with 530 additions and 531 deletions.
4 changes: 2 additions & 2 deletions azure-client-authentication/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.microsoft.azure</groupId>
<groupId>com.microsoft.azure.v2</groupId>
<artifactId>autorest-clientruntime-for-java</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
Expand Down Expand Up @@ -48,7 +48,7 @@

<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<groupId>com.microsoft.azure.v2</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.google.common.io.BaseEncoding;
import com.microsoft.aad.adal4j.AsymmetricKeyCredential;
import com.microsoft.aad.adal4j.AuthenticationContext;
import com.microsoft.aad.adal4j.AuthenticationException;
import com.microsoft.aad.adal4j.AuthenticationResult;
import com.microsoft.aad.adal4j.ClientCredential;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.v2.AzureEnvironment;

import java.io.ByteArrayInputStream;
import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.base.Charsets;
import com.google.common.io.Files;
import com.google.common.reflect.TypeToken;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.AzureEnvironment.Endpoint;
import com.microsoft.azure.v2.AzureEnvironment;
import com.microsoft.azure.v2.AzureEnvironment.Endpoint;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.azure.management.apigeneration.Beta.SinceVersion;
import com.microsoft.rest.serializer.JacksonAdapter;
import com.microsoft.rest.v2.serializer.JacksonAdapter;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.v2.AzureEnvironment;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.rest.serializer.JacksonAdapter;
import com.microsoft.rest.v2.serializer.JacksonAdapter;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.microsoft.aad.adal4j.AuthenticationResult;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.v2.AzureEnvironment;
import com.microsoft.azure.management.apigeneration.Beta;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.aad.adal4j.AuthenticationResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.v2.AzureEnvironment;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.azure.serializer.AzureJacksonAdapter;
import com.microsoft.azure.v2.serializer.AzureJacksonAdapter;

import java.io.BufferedReader;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.escape.Escaper;
import com.google.common.net.UrlEscapers;
import com.microsoft.aad.adal4j.AuthenticationResult;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.rest.RestClient;
import com.microsoft.rest.RestProxy;
import com.microsoft.rest.annotations.BodyParam;
import com.microsoft.rest.annotations.ExpectedResponses;
import com.microsoft.rest.annotations.POST;
import com.microsoft.rest.annotations.PathParam;
import com.microsoft.rest.http.HttpClient;
import com.microsoft.rest.http.NettyClient;
import com.microsoft.rest.policy.RequestPolicy;
import com.microsoft.rest.protocol.SerializerAdapter;
import com.microsoft.rest.v2.RestClient;
import com.microsoft.rest.v2.RestProxy;
import com.microsoft.rest.v2.annotations.BodyParam;
import com.microsoft.rest.v2.annotations.ExpectedResponses;
import com.microsoft.rest.v2.annotations.POST;
import com.microsoft.rest.v2.annotations.PathParam;
import com.microsoft.rest.v2.http.HttpClient;
import com.microsoft.rest.v2.http.NettyClient;
import com.microsoft.rest.v2.policy.RequestPolicy;
import com.microsoft.rest.v2.protocol.SerializerAdapter;
import rx.Single;
import rx.functions.Func1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.microsoft.aad.adal4j.AuthenticationContext;
import com.microsoft.aad.adal4j.AuthenticationResult;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.v2.AzureEnvironment;

import java.io.IOException;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* The package provides 2 credential classes that work with AutoRest
* generated Azure clients for authentication purposes through Azure.
*/
package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import org.junit.Assert;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.google.common.base.Charsets;
import com.google.common.io.CharStreams;
import com.microsoft.azure.credentials.http.MockHttpClient;
import com.microsoft.rest.http.HttpRequest;
import com.microsoft.azure.v2.credentials.http.MockHttpClient;
import com.microsoft.rest.v2.http.HttpRequest;
import org.junit.Test;

import java.io.IOException;
Expand All @@ -22,7 +22,7 @@ public void refreshToken() throws IOException {
assertEquals(1, httpClient.requests().size());
final HttpRequest request = httpClient.requests().get(0);
assertEquals("POST", request.httpMethod());
assertEquals("com.microsoft.azure.credentials.RefreshTokenClient$RefreshTokenService.refreshToken", request.callerMethod());
assertEquals("com.microsoft.azure.v2.credentials.RefreshTokenClient$RefreshTokenService.refreshToken", request.callerMethod());
assertEquals("http://my.base.url/mockTenant/oauth2/token", request.url());
assertEquals("client_id=mockClientId&grant_type=refresh_token&resource=mockResource&refresh_token=mockRefreshToken", CharStreams.toString(new InputStreamReader(request.body().createInputStream(), Charsets.UTF_8)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* license information.
*/

package com.microsoft.azure.credentials;
package com.microsoft.azure.v2.credentials;

import com.microsoft.aad.adal4j.AuthenticationResult;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.v2.AzureEnvironment;
import org.junit.Assert;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
* license information.
*/

package com.microsoft.azure.credentials.http;
package com.microsoft.azure.v2.credentials.http;

import com.microsoft.rest.http.HttpClient;
import com.microsoft.rest.http.HttpRequest;
import com.microsoft.rest.http.HttpResponse;
import com.microsoft.rest.v2.http.HttpClient;
import com.microsoft.rest.v2.http.HttpRequest;
import com.microsoft.rest.v2.http.HttpResponse;
import rx.Single;

import java.net.Proxy;
import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* license information.
*/

package com.microsoft.azure.credentials.http;
package com.microsoft.azure.v2.credentials.http;

import com.microsoft.rest.http.HttpHeaders;
import com.microsoft.rest.http.HttpResponse;
import com.microsoft.rest.protocol.SerializerAdapter;
import com.microsoft.rest.serializer.JacksonAdapter;
import com.microsoft.rest.v2.http.HttpHeaders;
import com.microsoft.rest.v2.http.HttpResponse;
import com.microsoft.rest.v2.protocol.SerializerAdapter;
import com.microsoft.rest.v2.serializer.JacksonAdapter;
import rx.Observable;
import rx.Single;

Expand Down
4 changes: 2 additions & 2 deletions azure-client-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.microsoft.azure</groupId>
<groupId>com.microsoft.azure.v2</groupId>
<artifactId>autorest-clientruntime-for-java</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
Expand Down Expand Up @@ -47,7 +47,7 @@

<dependencies>
<dependency>
<groupId>com.microsoft.rest</groupId>
<groupId>com.microsoft.rest.v2</groupId>
<artifactId>client-runtime</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* license information.
*/

package com.microsoft.azure;
package com.microsoft.azure.v2;

import com.fasterxml.jackson.annotation.JsonProperty;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* license information.
*/

package com.microsoft.azure;
package com.microsoft.azure.v2;

import com.microsoft.rest.RestProxy;
import com.microsoft.rest.protocol.SerializerAdapter;
import com.microsoft.rest.http.HttpRequest;
import com.microsoft.rest.http.HttpResponse;
import com.microsoft.rest.v2.RestProxy;
import com.microsoft.rest.v2.protocol.SerializerAdapter;
import com.microsoft.rest.v2.http.HttpRequest;
import com.microsoft.rest.v2.http.HttpResponse;
import rx.Single;
import rx.functions.Func1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* license information.
*/

package com.microsoft.azure;
package com.microsoft.azure.v2;

import com.microsoft.rest.protocol.Environment;
import com.microsoft.rest.v2.protocol.Environment;

import java.util.Arrays;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
* license information.
*/

package com.microsoft.azure;
package com.microsoft.azure.v2;

import com.google.common.reflect.TypeToken;
import com.microsoft.azure.annotations.AzureHost;
import com.microsoft.rest.protocol.SerializerAdapter;
import com.microsoft.rest.InvalidReturnTypeException;
import com.microsoft.rest.RestProxy;
import com.microsoft.rest.SwaggerInterfaceParser;
import com.microsoft.rest.SwaggerMethodParser;
import com.microsoft.rest.http.HttpClient;
import com.microsoft.rest.http.HttpRequest;
import com.microsoft.rest.http.HttpResponse;
import com.microsoft.azure.v2.annotations.AzureHost;
import com.microsoft.rest.v2.protocol.SerializerAdapter;
import com.microsoft.rest.v2.InvalidReturnTypeException;
import com.microsoft.rest.v2.RestProxy;
import com.microsoft.rest.v2.SwaggerInterfaceParser;
import com.microsoft.rest.v2.SwaggerMethodParser;
import com.microsoft.rest.v2.http.HttpClient;
import com.microsoft.rest.v2.http.HttpRequest;
import com.microsoft.rest.v2.http.HttpResponse;
import rx.Observable;
import rx.Single;
import rx.exceptions.Exceptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
* license information.
*/

package com.microsoft.azure;
package com.microsoft.azure.v2;

import com.google.common.hash.Hashing;
import com.microsoft.azure.serializer.AzureJacksonAdapter;
import com.microsoft.rest.RestClient;
import com.microsoft.rest.ServiceClient;
import com.microsoft.rest.credentials.ServiceClientCredentials;
import com.microsoft.azure.v2.serializer.AzureJacksonAdapter;
import com.microsoft.rest.v2.RestClient;
import com.microsoft.rest.v2.ServiceClient;
import com.microsoft.rest.v2.credentials.ServiceClientCredentials;

import java.net.NetworkInterface;
import java.util.Enumeration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* license information.
*/

package com.microsoft.azure;
package com.microsoft.azure.v2;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* license information.
*/

package com.microsoft.azure;
package com.microsoft.azure.v2;

import com.microsoft.rest.RestException;
import com.microsoft.rest.http.HttpResponse;
import com.microsoft.rest.v2.RestException;
import com.microsoft.rest.v2.http.HttpResponse;

/**
* Exception thrown for an invalid response with custom error information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* license information.
*/

package com.microsoft.azure;
package com.microsoft.azure.v2;

import com.microsoft.rest.RestProxy;
import com.microsoft.rest.SwaggerMethodParser;
import com.microsoft.rest.http.HttpRequest;
import com.microsoft.rest.http.HttpResponse;
import com.microsoft.rest.v2.RestProxy;
import com.microsoft.rest.v2.SwaggerMethodParser;
import com.microsoft.rest.v2.http.HttpRequest;
import com.microsoft.rest.v2.http.HttpResponse;
import rx.Observable;
import rx.Single;

Expand Down
Loading

0 comments on commit 057efef

Please sign in to comment.