Skip to content

Commit

Permalink
Using spring's dependency management (#1442)
Browse files Browse the repository at this point in the history
* Using spring's dependency management

* Another pass

* Another pass

* Remove unwanted code

Co-authored-by: Aaron Klish <aklish@gmail.com>
  • Loading branch information
moizarafat and aklish committed Jul 16, 2020
1 parent 7ceb688 commit add535f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 26 deletions.
13 changes: 0 additions & 13 deletions elide-spring/elide-spring-boot-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
</scm>

<properties>
<spring.boot.version>2.3.1.RELEASE</spring.boot.version>
<tomcat.version>9.0.37</tomcat.version>
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
<min_jdk_version>1.8</min_jdk_version>
<max_jdk_version>1.8</max_jdk_version>
Expand Down Expand Up @@ -89,7 +87,6 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.12</version>
<optional>true</optional>
</dependency>

Expand All @@ -103,20 +100,17 @@
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>${tomcat.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-websocket</artifactId>
<version>${tomcat.version}</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring.boot.version}</version>
<optional>true</optional>
<exclusions>
<exclusion>
Expand All @@ -133,7 +127,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>${spring.boot.version}</version>
<optional>true</optional>
</dependency>

Expand All @@ -144,7 +137,6 @@
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.26</version>
<scope>test</scope>
</dependency>

Expand All @@ -158,14 +150,12 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring.boot.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.197</version>
<scope>test</scope>
</dependency>

Expand All @@ -178,14 +168,12 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.6.2</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.6.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -212,7 +200,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
</plugin>
</plugins>
</build>
Expand Down
13 changes: 0 additions & 13 deletions elide-spring/elide-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
<tag>HEAD</tag>
</scm>

<properties>
<spring.boot.version>2.3.1.RELEASE</spring.boot.version>
</properties>

<dependencies>

<!-- Compile Dependencies -->
Expand Down Expand Up @@ -81,17 +77,14 @@
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlets</artifactId>
<version>${version.jetty}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-server</artifactId>
<version>${version.jetty}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>javax-websocket-server-impl</artifactId>
<version>${version.jetty}</version>
</dependency>

<dependency>
Expand All @@ -103,8 +96,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring.boot.version}</version>

<!-- No Tomcat -->
<exclusions>
<exclusion>
Expand All @@ -118,7 +109,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
<version>${spring.boot.version}</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
Expand All @@ -138,20 +128,17 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>${spring.boot.version}</version>
</dependency>

<!-- YAML for spring config -->
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.26</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<version>2.11.1</version>
</dependency>

</dependencies>
Expand Down
44 changes: 44 additions & 0 deletions elide-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,55 @@

<properties>
<parent.pom.dir>${project.basedir}/../..</parent.pom.dir>
<spring.boot.version>2.3.1.RELEASE</spring.boot.version>
<groovy.version>3.0.2</groovy.version>
</properties>

<modules>
<module>elide-spring-boot-autoconfigure</module>
<module>elide-spring-boot-starter</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>${version.restassured}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>json-path</artifactId>
<version>${version.restassured}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>xml-path</artifactId>
<version>${version.restassured}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>${groovy.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-xml</artifactId>
<version>${groovy.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

</project>

0 comments on commit add535f

Please sign in to comment.