Skip to content

Commit

Permalink
build: enable flatten-maven-plugin for all artifacts (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWhitehead committed May 20, 2020
1 parent 8b14331 commit a39775f
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,5 @@ target/
.idea/
*.iml
__pycache__/

.flattened-pom.xml
10 changes: 10 additions & 0 deletions google-cloud-firestore/pom.xml
Expand Up @@ -215,6 +215,15 @@
</plugins>
</reporting>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>java9</id>
Expand All @@ -225,6 +234,7 @@
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotations.version}</version>
</dependency>
</dependencies>
</profile>
Expand Down
9 changes: 9 additions & 0 deletions grpc-google-cloud-firestore-admin-v1/pom.xml
Expand Up @@ -66,6 +66,14 @@
</plugin>
</plugins>
</reporting>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

<profiles>
<profile>
Expand All @@ -77,6 +85,7 @@
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotations.version}</version>
</dependency>
</dependencies>
</profile>
Expand Down
9 changes: 9 additions & 0 deletions grpc-google-cloud-firestore-v1/pom.xml
Expand Up @@ -62,6 +62,14 @@
</plugin>
</plugins>
</reporting>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java9</id>
Expand All @@ -72,6 +80,7 @@
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotations.version}</version>
</dependency>
</dependencies>
</profile>
Expand Down
9 changes: 9 additions & 0 deletions grpc-google-cloud-firestore-v1beta1/pom.xml
Expand Up @@ -62,6 +62,14 @@
</plugin>
</plugins>
</reporting>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java9</id>
Expand All @@ -72,6 +80,7 @@
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotations.version}</version>
</dependency>
</dependencies>
</profile>
Expand Down
5 changes: 0 additions & 5 deletions pom.xml
Expand Up @@ -247,11 +247,6 @@
<artifactId>threetenbp</artifactId>
<version>${threeten.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotations.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
Expand Down
9 changes: 9 additions & 0 deletions proto-google-cloud-firestore-admin-v1/pom.xml
Expand Up @@ -33,6 +33,14 @@
<artifactId>guava</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java9</id>
Expand All @@ -43,6 +51,7 @@
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotations.version}</version>
</dependency>
</dependencies>
</profile>
Expand Down
9 changes: 9 additions & 0 deletions proto-google-cloud-firestore-v1/pom.xml
Expand Up @@ -33,6 +33,14 @@
<artifactId>guava</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java9</id>
Expand All @@ -43,6 +51,7 @@
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotations.version}</version>
</dependency>
</dependencies>
</profile>
Expand Down
9 changes: 9 additions & 0 deletions proto-google-cloud-firestore-v1beta1/pom.xml
Expand Up @@ -33,6 +33,14 @@
<artifactId>guava</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java9</id>
Expand All @@ -43,6 +51,7 @@
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotations.version}</version>
</dependency>
</dependencies>
</profile>
Expand Down

0 comments on commit a39775f

Please sign in to comment.