Skip to content

Commit

Permalink
dagger vs. guice
Browse files Browse the repository at this point in the history
  • Loading branch information
andrus committed Mar 31, 2018
1 parent 6bc9e70 commit 9f95d65
Show file tree
Hide file tree
Showing 11 changed files with 103 additions and 25 deletions.
16 changes: 16 additions & 0 deletions common/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?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>org.objectstyle.dagger</groupId>
<artifactId>dagger-sandbox</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>common</artifactId>
<packaging>jar</packaging>

</project>
49 changes: 49 additions & 0 deletions dagger/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?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>org.objectstyle.dagger</groupId>
<artifactId>dagger-sandbox</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>dagger</artifactId>
<version>1.0-SNAPSHOT</version>

<packaging>jar</packaging>

<properties>
<main.class>org.objectstyle.dagger.Main</main.class>
</properties>

<dependencies>
<dependency>
<groupId>org.objectstyle.dagger</groupId>
<artifactId>common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.google.dagger</groupId>
<artifactId>dagger</artifactId>
<version>${dagger.version}</version>
</dependency>
<dependency>
<groupId>com.google.dagger</groupId>
<artifactId>dagger-compiler</artifactId>
<version>${dagger.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
30 changes: 30 additions & 0 deletions guice/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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>org.objectstyle.dagger</groupId>
<artifactId>dagger-sandbox</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>guice</artifactId>
<version>1.0-SNAPSHOT</version>

<packaging>jar</packaging>

<dependencies>

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
33 changes: 8 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,25 @@
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>

<groupId>org.objectstyle</groupId>
<groupId>org.objectstyle.dagger</groupId>
<artifactId>dagger-sandbox</artifactId>
<version>1.0-SNAPSHOT</version>

<packaging>jar</packaging>
<packaging>pom</packaging>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

<dagger.version>2.15</dagger.version>

<main.class>org.objectstyle.dagger.Main</main.class>
<guice.version>4.2</guice.version>
</properties>


<dependencies>
<dependency>
<groupId>com.google.dagger</groupId>
<artifactId>dagger</artifactId>
<version>${dagger.version}</version>
</dependency>
<dependency>
<groupId>com.google.dagger</groupId>
<artifactId>dagger-compiler</artifactId>
<version>${dagger.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<modules>
<module>common</module>
<module>dagger</module>
<module>guice</module>
</modules>

<build>
<pluginManagement>
Expand Down Expand Up @@ -88,12 +77,6 @@
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>

0 comments on commit 9f95d65

Please sign in to comment.