Refactor project structure and update Lombok version to 1.18.46
This commit is contained in:
Generated
+2
-5
@@ -7,23 +7,20 @@
|
|||||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||||
<outputRelativeToContentRoot value="true" />
|
<outputRelativeToContentRoot value="true" />
|
||||||
<module name="ListHubBackend" />
|
|
||||||
</profile>
|
</profile>
|
||||||
<profile name="Annotation profile for ListHubBackend" enabled="true">
|
<profile name="Annotation profile for ListHubBackend" enabled="true">
|
||||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||||
<outputRelativeToContentRoot value="true" />
|
<outputRelativeToContentRoot value="true" />
|
||||||
<processorPath useClasspath="false">
|
<processorPath useClasspath="false">
|
||||||
<entry name="$MAVEN_REPOSITORY$/org/projectlombok/lombok/1.18.30/lombok-1.18.30.jar" />
|
<entry name="$MAVEN_REPOSITORY$/org/projectlombok/lombok/1.18.46/lombok-1.18.46.jar" />
|
||||||
<entry name="$MAVEN_REPOSITORY$/org/projectlombok/lombok/1.18.30/lombok-1.18.30.jar" />
|
|
||||||
</processorPath>
|
</processorPath>
|
||||||
<module name="ArtisanConnectBackend" />
|
<module name="ListHubBackend" />
|
||||||
</profile>
|
</profile>
|
||||||
</annotationProcessing>
|
</annotationProcessing>
|
||||||
</component>
|
</component>
|
||||||
<component name="JavacSettings">
|
<component name="JavacSettings">
|
||||||
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
|
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
|
||||||
<module name="ArtisanConnectBackend" options="-parameters" />
|
|
||||||
<module name="ListHubBackend" options="-parameters" />
|
<module name="ListHubBackend" options="-parameters" />
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
Generated
-18
@@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="CopilotDiffPersistence">
|
|
||||||
<option name="pendingDiffs">
|
|
||||||
<map>
|
|
||||||
<entry key="$PROJECT_DIR$/src/main/java/_11/asktpk/artisanconnectbackend/ArtisanConnectBackendApplication.java">
|
|
||||||
<value>
|
|
||||||
<PendingDiffInfo>
|
|
||||||
<option name="filePath" value="$PROJECT_DIR$/src/main/java/_11/asktpk/artisanconnectbackend/ArtisanConnectBackendApplication.java" />
|
|
||||||
<option name="originalContent" value="package _11.asktpk.artisanconnectbackend; import jakarta.annotation.PostConstruct; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.core.env.Environment; @SpringBootApplication public class ArtisanConnectBackendApplication { private final Environment environment; public ArtisanConnectBackendApplication(Environment environment) { this.environment = environment; } static void main(String[] args) { SpringApplication.run(ArtisanConnectBackendApplication.class, args); } @PostConstruct public void logDataSourceUrl() { System.out.println("Datasource URL: " + environment.getProperty("spring.datasource.url")); } } " />
|
|
||||||
<option name="updatedContent" value="package _11.asktpk.artisanconnectbackend; import jakarta.annotation.PostConstruct; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.core.env.Environment; @SpringBootApplication public class ArtisanConnectBackendApplication { private final Environment environment; public ArtisanConnectBackendApplication(Environment environment) { this.environment = environment; } public static void main(String[] args) { SpringApplication.run(ArtisanConnectBackendApplication.class, args); } @PostConstruct public void logDataSourceUrl() { System.out.println("Datasource URL: " + environment.getProperty("spring.datasource.url")); } } " />
|
|
||||||
</PendingDiffInfo>
|
|
||||||
</value>
|
|
||||||
</entry>
|
|
||||||
</map>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
</scm>
|
</scm>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>21</java.version>
|
<java.version>21</java.version>
|
||||||
|
<lombok.version>1.18.46</lombok.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -70,8 +71,8 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>1.18.30</version>
|
<version>${lombok.version}</version>
|
||||||
<scope>compile</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
@@ -127,13 +128,15 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.11.0</version>
|
<version>3.11.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>${java.version}</source>
|
<!-- Use release to match the target JDK and avoid source/target mismatches -->
|
||||||
<target>${java.version}</target>
|
<release>${java.version}</release>
|
||||||
|
<!-- Fork the compilation to isolate the compiler process (helps with some javac internal issues) -->
|
||||||
|
<fork>true</fork>
|
||||||
<annotationProcessorPaths>
|
<annotationProcessorPaths>
|
||||||
<path>
|
<path>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>1.18.30</version>
|
<version>${lombok.version}</version>
|
||||||
</path>
|
</path>
|
||||||
</annotationProcessorPaths>
|
</annotationProcessorPaths>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
+3
-3
@@ -6,16 +6,16 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||||||
import org.springframework.core.env.Environment;
|
import org.springframework.core.env.Environment;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class ArtisanConnectBackendApplication {
|
public class ListhubBackendApplication {
|
||||||
|
|
||||||
private final Environment environment;
|
private final Environment environment;
|
||||||
|
|
||||||
public ArtisanConnectBackendApplication(Environment environment) {
|
public ListhubBackendApplication(Environment environment) {
|
||||||
this.environment = environment;
|
this.environment = environment;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(ArtisanConnectBackendApplication.class, args);
|
SpringApplication.run(ListhubBackendApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
Reference in New Issue
Block a user