Skip to content

Commit cb9c16a

Browse files
authored
Optimize build (eugenp#1592)
* Optimize build * Optimize build
1 parent eb26f83 commit cb9c16a

23 files changed

Lines changed: 60 additions & 68 deletions

File tree

apache-poi/temp.xlsx

0 Bytes
Binary file not shown.

mesos-marathon/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@
4040
</execution>
4141
</executions>
4242
</plugin>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-surefire-plugin</artifactId>
46+
<configuration>
47+
<excludes>
48+
<exclude>**/*IntegrationTest.java</exclude>
49+
<exclude>**/*LiveTest.java</exclude>
50+
</excludes>
51+
</configuration>
52+
</plugin>
4353
</plugins>
4454
</build>
4555

mesos-marathon/src/main/java/com/mogronalol/DemoApplication.java renamed to mesos-marathon/src/main/java/com/baeldung/DemoApplication.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
package com.mogronalol;
1+
package com.baeldung;
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
55

6-
import javax.annotation.PostConstruct;
7-
86
@SpringBootApplication
97
public class DemoApplication {
108

mesos-marathon/src/main/java/com/mogronalol/HelloController.java renamed to mesos-marathon/src/main/java/com/baeldung/HelloController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
package com.mogronalol;
1+
package com.baeldung;
22

3-
import org.springframework.stereotype.Controller;
43
import org.springframework.web.bind.annotation.GetMapping;
54
import org.springframework.web.bind.annotation.ResponseBody;
65
import org.springframework.web.bind.annotation.RestController;

mesos-marathon/src/test/java/com/mogronalol/DemoApplicationTests.java renamed to mesos-marathon/src/test/java/com/baeldung/DemoApplicationIntegrationTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
package com.mogronalol;
1+
package com.baeldung;
22

33
import org.junit.Before;
44
import org.junit.Test;
55
import org.junit.runner.RunWith;
66
import org.springframework.boot.context.embedded.LocalServerPort;
77
import org.springframework.boot.test.context.SpringBootTest;
8-
import org.springframework.test.context.ContextConfiguration;
98
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
109
import org.springframework.web.client.RestTemplate;
1110

1211
import static org.assertj.core.api.Assertions.assertThat;
1312

1413
@RunWith(SpringJUnit4ClassRunner.class)
1514
@SpringBootTest(classes = {DemoApplication.class}, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
16-
public class DemoApplicationTests {
15+
public class DemoApplicationIntegrationTest {
1716

1817
private RestTemplate restTemplate;
1918

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<module>deltaspike</module>
3636
<module>dozer</module>
3737

38-
<module>ejb</module>
38+
<!--<module>ejb</module>-->
3939

4040
<module>feign</module>
4141
<module>flyway</module>
@@ -66,7 +66,7 @@
6666
<module>javax-servlets</module>
6767
<module>javaxval</module>
6868
<module>jaxb</module>
69-
<module>jee7</module>
69+
<!--<module>jee7</module>-->
7070
<!-- <module>jhipster</module> -->
7171
<module>jjwt</module>
7272
<module>jooq</module>

spring-amqp-simple/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@
4141
<groupId>org.springframework.boot</groupId>
4242
<artifactId>spring-boot-maven-plugin</artifactId>
4343
</plugin>
44+
<plugin>
45+
<groupId>org.apache.maven.plugins</groupId>
46+
<artifactId>maven-surefire-plugin</artifactId>
47+
<configuration>
48+
<excludes>
49+
<exclude>**/*IntegrationTest.java</exclude>
50+
<exclude>**/*LiveTest.java</exclude>
51+
</excludes>
52+
</configuration>
53+
</plugin>
4454
</plugins>
4555
</build>
4656
</project>

spring-aop/pom.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.baeldung</groupId>
5-
<artifactId>spring-custom-aop</artifactId>
5+
<artifactId>spring-aop</artifactId>
66
<version>0.0.1-SNAPSHOT</version>
77
<packaging>war</packaging>
8-
<name>spring-custom-aop</name>
8+
<name>spring-aop</name>
99

1010
<parent>
1111
<groupId>org.springframework.boot</groupId>
@@ -42,6 +42,18 @@
4242
<target>1.8</target>
4343
</configuration>
4444
</plugin>
45+
46+
<plugin>
47+
<groupId>org.apache.maven.plugins</groupId>
48+
<artifactId>maven-surefire-plugin</artifactId>
49+
<configuration>
50+
<excludes>
51+
<exclude>**/*IntegrationTest.java</exclude>
52+
<exclude>**/*LiveTest.java</exclude>
53+
</excludes>
54+
</configuration>
55+
</plugin>
4556
</plugins>
4657
</build>
4758
</project>
59+

spring-aop/src/test/java/org/baeldung/CustomAnnotationTest.java renamed to spring-aop/src/test/java/org/baeldung/CustomAnnotationIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
@RunWith(SpringJUnit4ClassRunner.class)
1010
@SpringBootTest
11-
public class CustomAnnotationTest {
11+
public class CustomAnnotationIntegrationTest {
1212

1313
@Autowired
1414
private Service service;

spring-boot/src/test/java/org/baeldung/jsoncomponent/UserJsonDeserializerTest.java renamed to spring-boot/src/test/java/org/baeldung/jsoncomponent/UserJsonDeserializerIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
@JsonTest
1616
@RunWith(SpringRunner.class)
17-
public class UserJsonDeserializerTest {
17+
public class UserJsonDeserializerIntegrationTest {
1818

1919
@Autowired
2020
private ObjectMapper objectMapper;

0 commit comments

Comments
 (0)