Skip to content

Commit bebaf6d

Browse files
fscorroKevinGilmore
authored andcommitted
BAEL-1776: Add description and change module name (eugenp#4607)
* Add description and change module name * Fix mvn parent in spring-boot-custom-starter
1 parent 59277b4 commit bebaf6d

13 files changed

Lines changed: 34 additions & 20 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
### Relevant Articles:
22
- [Creating a Custom Starter with Spring Boot](http://www.baeldung.com/spring-boot-custom-starter)
3+
4+
- **greeter-library**: The sample library that we're creating the starter for.
5+
6+
- **greeter-spring-boot-autoconfigure**: The project containing the auto-configuration for the library.
7+
8+
- **greeter-spring-boot-starter**: The custom starter for the library.
9+
10+
- **greeter-spring-boot-sample-app**: The sample project that uses the custom starter.
File renamed without changes.

spring-boot-custom-starter/greeter/pom.xml renamed to spring-boot-custom-starter/greeter-library/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<modelVersion>4.0.0</modelVersion>
44

55
<groupId>com.baeldung</groupId>
6-
<artifactId>greeter</artifactId>
6+
<artifactId>greeter-library</artifactId>
77
<version>0.0.1-SNAPSHOT</version>
88
<parent>
9-
<artifactId>parent-boot-1</artifactId>
9+
<artifactId>spring-boot-custom-starter</artifactId>
1010
<groupId>com.baeldung</groupId>
1111
<version>0.0.1-SNAPSHOT</version>
12-
<relativePath>../../parent-boot-1</relativePath>
12+
<relativePath>../../spring-boot-custom-starter</relativePath>
1313
</parent>
1414
</project>

spring-boot-custom-starter/greeter/src/main/java/com/baeldung/greeter/Greeter.java renamed to spring-boot-custom-starter/greeter-library/src/main/java/com/baeldung/greeter/library/Greeter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.baeldung.greeter;
1+
package com.baeldung.greeter.library;
22

3-
import static com.baeldung.greeter.GreeterConfigParams.*;
3+
import static com.baeldung.greeter.library.GreeterConfigParams.*;
44

55
import java.time.LocalDateTime;
66

spring-boot-custom-starter/greeter/src/main/java/com/baeldung/greeter/GreeterConfigParams.java renamed to spring-boot-custom-starter/greeter-library/src/main/java/com/baeldung/greeter/library/GreeterConfigParams.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.greeter;
1+
package com.baeldung.greeter.library;
22

33
public class GreeterConfigParams {
44

spring-boot-custom-starter/greeter/src/main/java/com/baeldung/greeter/GreetingConfig.java renamed to spring-boot-custom-starter/greeter-library/src/main/java/com/baeldung/greeter/library/GreetingConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.greeter;
1+
package com.baeldung.greeter.library;
22

33
import java.util.Properties;
44

spring-boot-custom-starter/greeter/src/test/java/com/baeldung/greeter/GreeterIntegrationTest.java renamed to spring-boot-custom-starter/greeter-library/src/test/java/com/baeldung/greeter/GreeterIntegrationTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.baeldung.greeter;
22

3-
import static com.baeldung.greeter.GreeterConfigParams.*;
3+
import static com.baeldung.greeter.library.GreeterConfigParams.*;
44
import static org.junit.Assert.assertEquals;
55

66
import java.time.LocalDateTime;
77

8+
import com.baeldung.greeter.library.Greeter;
9+
import com.baeldung.greeter.library.GreetingConfig;
810
import org.junit.BeforeClass;
911
import org.junit.Test;
1012

‎spring-boot-custom-starter/greeter-spring-boot-autoconfigure/pom.xml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
<groupId>com.baeldung</groupId>
66
<artifactId>greeter-spring-boot-autoconfigure</artifactId>
77
<version>0.0.1-SNAPSHOT</version>
8+
89
<parent>
9-
<artifactId>parent-boot-1</artifactId>
10+
<artifactId>spring-boot-custom-starter</artifactId>
1011
<groupId>com.baeldung</groupId>
1112
<version>0.0.1-SNAPSHOT</version>
12-
<relativePath>../../parent-boot-1</relativePath>
13+
<relativePath>../../spring-boot-custom-starter</relativePath>
1314
</parent>
15+
1416
<properties>
1517
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1618
<spring-boot.version>1.5.2.RELEASE</spring-boot.version>
@@ -40,7 +42,7 @@
4042

4143
<dependency>
4244
<groupId>com.baeldung</groupId>
43-
<artifactId>greeter</artifactId>
45+
<artifactId>greeter-library</artifactId>
4446
<version>${greeter.version}</version>
4547
<optional>true</optional>
4648
</dependency>

‎spring-boot-custom-starter/greeter-spring-boot-autoconfigure/src/main/java/com/baeldung/greeter/autoconfigure/GreeterAutoConfiguration.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.baeldung.greeter.autoconfigure;
22

3-
import static com.baeldung.greeter.GreeterConfigParams.*;
3+
import static com.baeldung.greeter.library.GreeterConfigParams.*;
44

55
import org.springframework.beans.factory.annotation.Autowired;
66
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
@@ -9,8 +9,8 @@
99
import org.springframework.context.annotation.Bean;
1010
import org.springframework.context.annotation.Configuration;
1111

12-
import com.baeldung.greeter.Greeter;
13-
import com.baeldung.greeter.GreetingConfig;
12+
import com.baeldung.greeter.library.Greeter;
13+
import com.baeldung.greeter.library.GreetingConfig;
1414

1515
@Configuration
1616
@ConditionalOnClass(Greeter.class)

‎spring-boot-custom-starter/greeter-spring-boot-sample-app/src/main/java/com/baeldung/greeter/sample/GreeterSampleApplication.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.springframework.boot.SpringApplication;
66
import org.springframework.boot.autoconfigure.SpringBootApplication;
77

8-
import com.baeldung.greeter.Greeter;
8+
import com.baeldung.greeter.library.Greeter;
99

1010
@SpringBootApplication
1111
public class GreeterSampleApplication implements CommandLineRunner {

0 commit comments

Comments
 (0)