Move DataInitializer to separate Maven module
There will be a lot more test data infrastructure in the future so moving it all to a separate module makes sense.
This commit is contained in:
parent
e71aa8120c
commit
2af932291c
@ -1017,11 +1017,6 @@ public class CoreConfig {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
|
||||||
public DataInitializer dataInitializer() {
|
|
||||||
return new DataInitializer();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public FinalSeminarActivityHandler finalSeminarActivityHandler(
|
public FinalSeminarActivityHandler finalSeminarActivityHandler(
|
||||||
ActivityPlanFacade activityPlanFacade,
|
ActivityPlanFacade activityPlanFacade,
|
||||||
|
1
pom.xml
1
pom.xml
@ -15,6 +15,7 @@
|
|||||||
<module>daisy-integration</module>
|
<module>daisy-integration</module>
|
||||||
<module>war</module>
|
<module>war</module>
|
||||||
<module>api</module>
|
<module>api</module>
|
||||||
|
<module>test-data</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
20
test-data/pom.xml
Normal file
20
test-data/pom.xml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<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>se.su.dsv.scipro</groupId>
|
||||||
|
<artifactId>SciPro</artifactId>
|
||||||
|
<version>0.1-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>test-data</artifactId>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>se.su.dsv.scipro</groupId>
|
||||||
|
<artifactId>core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
@ -1,4 +1,4 @@
|
|||||||
package se.su.dsv.scipro;
|
package se.su.dsv.scipro.testdata;
|
||||||
|
|
||||||
import jakarta.inject.Inject;
|
import jakarta.inject.Inject;
|
||||||
import jakarta.inject.Provider;
|
import jakarta.inject.Provider;
|
14
test-data/src/main/java/se/su/dsv/scipro/testdata/TestDataConfiguration.java
vendored
Normal file
14
test-data/src/main/java/se/su/dsv/scipro/testdata/TestDataConfiguration.java
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package se.su.dsv.scipro.testdata;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import se.su.dsv.scipro.war.PluginConfiguration;
|
||||||
|
|
||||||
|
@Configuration(proxyBeanMethods = false)
|
||||||
|
public class TestDataConfiguration implements PluginConfiguration {
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public DataInitializer dataInitializer() {
|
||||||
|
return new DataInitializer();
|
||||||
|
}
|
||||||
|
}
|
1
test-data/src/main/resources/META-INF/services/se.su.dsv.scipro.war.PluginConfiguration
Normal file
1
test-data/src/main/resources/META-INF/services/se.su.dsv.scipro.war.PluginConfiguration
Normal file
@ -0,0 +1 @@
|
|||||||
|
se.su.dsv.scipro.testdata.TestDataConfiguration
|
13
war/pom.xml
13
war/pom.xml
@ -140,5 +140,18 @@
|
|||||||
<spring.profile.active>branch</spring.profile.active>
|
<spring.profile.active>branch</spring.profile.active>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>DEV</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>se.su.dsv.scipro</groupId>
|
||||||
|
<artifactId>test-data</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user