Skip to content

Commit

Permalink
Release/2.1.7 (microsoft#703)
Browse files Browse the repository at this point in the history
* change version to 2.1.7

* change spring dependency version

* update readme for jms samples

* correct README.md of azure-sqlserver-spring-boot-starter. There is no samples code of this starter. So delete the related part of the doc.

* update version

* update readme for keyvault sample

* The test case in AADAuthenticationFilterTest is out of date, so ignore it in case of hindering current release. I will add a new test case later.

* correct checkstyle error

* upgrade gradlew version

* lombok support in gradle 5
  • Loading branch information
jialindai authored and superrdean committed Aug 20, 2019
1 parent c0dc9e6 commit c76a748
Show file tree
Hide file tree
Showing 32 changed files with 68 additions and 46 deletions.
19 changes: 16 additions & 3 deletions azure-spring-boot-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-bom</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<packaging>pom</packaging>

<name>Azure Spring Boot BOM</name>
Expand Down Expand Up @@ -46,12 +46,25 @@
</scm>

<properties>
<azure.spring.boot.version>2.1.7-SNAPSHOT</azure.spring.boot.version>
<azure.dependencies.bom.version>2.1.0.M5</azure.dependencies.bom.version>
<azure.spring.boot.version>2.1.7</azure.spring.boot.version>
<azure.dependencies.bom.version>2.1.0.M6</azure.dependencies.bom.version>
<spring.data.cosmosdb.version>2.1.7</spring.data.cosmosdb.version>
<spring.data.gremlin.version>2.1.7</spring.data.gremlin.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>spring-data-cosmosdb</artifactId>
<version>${spring.data.cosmosdb.version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.spring.data.gremlin</groupId>
<artifactId>spring-data-gremlin</artifactId>
<version>${spring.data.gremlin.version}</version>
</dependency>

<!-- Azure Dependencies Bom -->
<dependency>
<groupId>com.microsoft.azure</groupId>
Expand Down
8 changes: 4 additions & 4 deletions azure-spring-boot-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-bom</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../azure-spring-boot-bom/pom.xml</relativePath>
</parent>

Expand All @@ -27,19 +27,19 @@
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<spring.boot.version>2.1.0.RELEASE</spring.boot.version>
<spring.boot.version>2.1.7.RELEASE</spring.boot.version>
<findbugs.annotations.version>2.0.1</findbugs.annotations.version>
<nimbus.jose.jwt.version>4.39.2</nimbus.jose.jwt.version>
<mockito.core.version>2.8.9</mockito.core.version>
<azuremonitor.micrometer.registry.version>1.1.0</azuremonitor.micrometer.registry.version>
<micrometer.core.version>1.1.0</micrometer.core.version>
<spring-boot-actuator-autoconfigure.version>2.1.0.RELEASE</spring-boot-actuator-autoconfigure.version>
<spring-boot-actuator-autoconfigure.version>2.1.7.RELEASE</spring-boot-actuator-autoconfigure.version>
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
<wiremock-standalone.version>2.19.0</wiremock-standalone.version>
<commons-io.version>2.3</commons-io.version>
<hibernate.validator.version>6.0.9.Final</hibernate.validator.version>
<javax.jms-api.version>2.0.1</javax.jms-api.version>
<spring-jms.version>5.1.8.RELEASE</spring-jms.version>
<spring-jms.version>5.1.9.RELEASE</spring-jms.version>
<qpid-jms-client.version>0.43.0</qpid-jms-client.version>
<junit-params.version>1.1.1</junit-params.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
plugins {
id 'io.franzbecker.gradle-lombok' version '1.8'
}

description = 'Azure Document DB Spring Boot Starter Sample'

dependencies {
compile group: 'com.microsoft.azure', name: 'azure-cosmosdb-spring-boot-starter', version:"${azureSpringBootStartersVersion}"
compileOnly "org.projectlombok:lombok"
annotationProcessor "org.projectlombok:lombok"
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If you are using Maven, add the following dependency.
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-keyvault-secrets-spring-boot-starter</artifactId>
<version>0.2.3</version>
<version>2.1.7</version>
</dependency>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test-autoconfigure</artifactId>
<version>2.1.2.RELEASE</version>
<version>2.1.7.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.1.4.RELEASE</version>
<version>5.1.9.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test-autoconfigure</artifactId>
<version>2.1.2.RELEASE</version>
<version>2.1.7.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.1.4.RELEASE</version>
<version>5.1.9.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This sample project demonstrates how to use Service Bus via Spring Boot Starter
- Use Gradle
```
gradle bootRepackage
gradle bootJar
java -jar build/libs/azure-servicebus-spring-boot-sample-0.0.1-SNAPSHOT.jar
```
Expand Down
4 changes: 2 additions & 2 deletions azure-spring-boot-samples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext {
springBootVersion = '2.0.1.RELEASE'
springBootVersion = '2.1.7.RELEASE'
}
repositories {
mavenCentral()
Expand All @@ -18,7 +18,7 @@ allprojects {
version = '0.0.1-SNAPSHOT'

ext {
azureSpringBootStartersVersion = '2.0.7'
azureSpringBootStartersVersion = '2.1.7'
commonsioVersion = '2.3'
}
}
Expand Down
Binary file modified azure-spring-boot-samples/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-bin.zip
4 changes: 2 additions & 2 deletions azure-spring-boot-samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RELEASE</version>
<version>2.1.7.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -66,7 +66,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-bom</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

<artifactId>azure-active-directory-b2c-spring-boot-starter</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>

<name>Azure AD B2C Spring Security Integration Spring Boot Starter</name>
<description>Spring Boot Starter for Azure AD B2C and Spring Security Integration</description>
Expand All @@ -36,7 +36,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
</dependency>
<!-- Below poms will be replaced to azure-spring-boot-starter pom when no milestone tag. -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Add the following dependency to your project:
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-servicebus-jms-spring-boot-starter</artifactId>
<version>2.0.4</version>
<version>2.1.7</version>
</dependency>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Add the following dependency to your project:
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-servicebus-spring-boot-starter</artifactId>
<version>2.0.4</version>
<version>2.1.7</version>
</dependency>
```

*Gradle*<br>
```compile 'com.microsoft.azure:azure-servicebus-spring-boot-starter:2.0.4'```
```compile 'com.microsoft.azure:azure-servicebus-spring-boot-starter:2.1.7'```

### Add the property setting

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

[Azure SQL DB Always Encrypted](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-always-encrypted) feature allows to encrypt data in SQL and store master keys in Azure KeyVault

## Sample Code
Please refer to [sample project here](../../azure-spring-boot-samples/azure-sqlserver-spring-boot-sample).

## Quick Start

### Add the dependency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion azure-spring-boot-starters/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down
8 changes: 7 additions & 1 deletion azure-spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-parent</artifactId>
<version>2.1.7-SNAPSHOT</version>
<version>2.1.7</version>
<relativePath>../azure-spring-boot-parent/pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -219,6 +219,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
Expand All @@ -30,8 +31,8 @@ public DocumentDBAutoConfiguration(DocumentDBProperties properties,
configConnectionPolicy(properties, policy);
}

@Override
public DocumentDBConfig getConfig() {
@Bean
public DocumentDBConfig documentDbConfig() {
final DocumentDBConfig config = DocumentDBConfig.builder(
properties.getUri(), properties.getKey(), properties.getDatabase())
.consistencyLevel(properties.getConsistencyLevel())
Expand Down
Loading

0 comments on commit c76a748

Please sign in to comment.