Skip to content

Commit bc18b55

Browse files
committed
Create spring-boot-sendgrid module
1 parent 26198b0 commit bc18b55

File tree

11 files changed

+36
-12
lines changed

11 files changed

+36
-12
lines changed

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ include "spring-boot-project:spring-boot-quartz"
8383
include "spring-boot-project:spring-boot-r2dbc"
8484
include "spring-boot-project:spring-boot-reactor-netty"
8585
include "spring-boot-project:spring-boot-rsocket"
86+
include "spring-boot-project:spring-boot-sendgrid"
8687
include "spring-boot-project:spring-boot-test"
8788
include "spring-boot-project:spring-boot-test-autoconfigure"
8889
include "spring-boot-project:spring-boot-test-integration-tests"

spring-boot-project/spring-boot-autoconfigure-all/build.gradle

-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ dependencies {
108108
optional("org.apiguardian:apiguardian-api")
109109
optional("org.eclipse.angus:angus-mail")
110110
optional("com.github.ben-manes.caffeine:caffeine")
111-
optional("com.sendgrid:sendgrid-java") {
112-
exclude group: "commons-logging", module: "commons-logging"
113-
}
114111
optional("com.zaxxer:HikariCP")
115112
optional("org.aspectj:aspectjweaver")
116113
optional("org.cache2k:cache2k-spring")

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2Re
6363
org.springframework.boot.autoconfigure.security.oauth2.resource.reactive.ReactiveOAuth2ResourceServerAutoConfiguration
6464
org.springframework.boot.autoconfigure.security.oauth2.server.servlet.OAuth2AuthorizationServerAutoConfiguration
6565
org.springframework.boot.autoconfigure.security.oauth2.server.servlet.OAuth2AuthorizationServerJwtAutoConfiguration
66-
org.springframework.boot.autoconfigure.sendgrid.SendGridAutoConfiguration
6766
org.springframework.boot.autoconfigure.session.SessionAutoConfiguration
6867
org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration
6968
org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration

spring-boot-project/spring-boot-dependencies/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -2064,6 +2064,7 @@ bom {
20642064
"spring-boot-r2dbc",
20652065
"spring-boot-reactor-netty",
20662066
"spring-boot-rsocket",
2067+
"spring-boot-sendgrid",
20672068
"spring-boot-starter",
20682069
"spring-boot-starter-activemq",
20692070
"spring-boot-starter-actuator",

spring-boot-project/spring-boot-docs/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ dependencies {
8585
autoConfiguration(project(path: ":spring-boot-project:spring-boot-r2dbc", configuration: "autoConfigurationMetadata"))
8686
autoConfiguration(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "autoConfigurationMetadata"))
8787
autoConfiguration(project(path: ":spring-boot-project:spring-boot-rsocket", configuration: "autoConfigurationMetadata"))
88+
autoConfiguration(project(path: ":spring-boot-project:spring-boot-sendgrid", configuration: "autoConfigurationMetadata"))
8889
autoConfiguration(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "autoConfigurationMetadata"))
8990
autoConfiguration(project(path: ":spring-boot-project:spring-boot-thymeleaf", configuration: "autoConfigurationMetadata"))
9091
autoConfiguration(project(path: ":spring-boot-project:spring-boot-tomcat", configuration: "autoConfigurationMetadata"))
@@ -129,6 +130,7 @@ dependencies {
129130
configurationProperties(project(path: ":spring-boot-project:spring-boot-r2dbc", configuration: "configurationPropertiesMetadata"))
130131
configurationProperties(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "configurationPropertiesMetadata"))
131132
configurationProperties(project(path: ":spring-boot-project:spring-boot-rsocket", configuration: "configurationPropertiesMetadata"))
133+
configurationProperties(project(path: ":spring-boot-project:spring-boot-sendgrid", configuration: "configurationPropertiesMetadata"))
132134
configurationProperties(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "configurationPropertiesMetadata"))
133135
configurationProperties(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "configurationPropertiesMetadata"))
134136
configurationProperties(project(path: ":spring-boot-project:spring-boot-thymeleaf", configuration: "configurationPropertiesMetadata"))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
plugins {
2+
id "java-library"
3+
id "org.springframework.boot.auto-configuration"
4+
id "org.springframework.boot.configuration-properties"
5+
id "org.springframework.boot.deployed"
6+
id "org.springframework.boot.optional-dependencies"
7+
}
8+
9+
description = "Spring Boot New Project"
10+
11+
dependencies {
12+
api(project(":spring-boot-project:spring-boot"))
13+
api("com.sendgrid:sendgrid-java") {
14+
exclude group: "commons-logging", module: "commons-logging"
15+
}
16+
17+
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
18+
19+
testImplementation(project(":spring-boot-project:spring-boot-test"))
20+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
21+
22+
testRuntimeOnly("ch.qos.logback:logback-classic")
23+
}
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.sendgrid;
17+
package org.springframework.boot.sendgrid.autoconfigure;
1818

1919
import com.sendgrid.Client;
2020
import com.sendgrid.SendGrid;
@@ -36,7 +36,7 @@
3636
* @author Maciej Walkowiak
3737
* @author Patrick Bray
3838
* @author Andy Wilkinson
39-
* @since 1.3.0
39+
* @since 4.0.0
4040
*/
4141
@AutoConfiguration
4242
@ConditionalOnClass(SendGrid.class)
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.sendgrid;
17+
package org.springframework.boot.sendgrid.autoconfigure;
1818

1919
import org.springframework.boot.context.properties.ConfigurationProperties;
2020

@@ -23,7 +23,7 @@
2323
*
2424
* @author Maciej Walkowiak
2525
* @author Andy Wilkinson
26-
* @since 1.3.0
26+
* @since 4.0.0
2727
*/
2828
@ConfigurationProperties("spring.sendgrid")
2929
public class SendGridProperties {
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,4 +17,4 @@
1717
/**
1818
* Auto-configuration for SendGrid.
1919
*/
20-
package org.springframework.boot.autoconfigure.sendgrid;
20+
package org.springframework.boot.sendgrid.autoconfigure;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.springframework.boot.sendgrid.autoconfigure.SendGridAutoConfiguration
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.sendgrid;
17+
package org.springframework.boot.sendgrid.autoconfigure;
1818

1919
import com.sendgrid.SendGrid;
2020
import org.apache.http.impl.conn.DefaultProxyRoutePlanner;

0 commit comments

Comments
 (0)