Skip to content

Commit 63aa446

Browse files
deweyjoseDewey jose
andauthored
fix: flatten the plugin (#221)
Co-authored-by: Dewey jose <[email protected]>
1 parent 3719182 commit 63aa446

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@ nb-configuration.xml
8686
release.sh
8787

8888
.tool-versions
89+
.flattened-pom.xml

graphqlcodegen-maven-plugin/pom.xml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,13 @@
1111
</parent>
1212

1313
<artifactId>graphqlcodegen-maven-plugin</artifactId>
14-
<version>3.0.1</version>
14+
<version>3.0.2</version>
1515
<packaging>maven-plugin</packaging>
1616

1717
<name>GraphQL Code Generator Maven Plugin</name>
1818
<description>Maven plugin for GraphQL code generation</description>
1919

2020
<dependencies>
21-
<dependency>
22-
<groupId>io.github.deweyjose</groupId>
23-
<artifactId>graphqlcodegen-param-plugin</artifactId>
24-
<version>0.0.1-SNAPSHOT</version>
25-
</dependency>
2621
<dependency>
2722
<groupId>com.squareup</groupId>
2823
<artifactId>kotlinpoet-jvm</artifactId>
@@ -73,6 +68,26 @@
7368

7469
<build>
7570
<plugins>
71+
<plugin>
72+
<groupId>org.codehaus.mojo</groupId>
73+
<artifactId>flatten-maven-plugin</artifactId>
74+
<executions>
75+
<execution>
76+
<id>flatten</id>
77+
<phase>process-resources</phase>
78+
<goals>
79+
<goal>flatten</goal>
80+
</goals>
81+
</execution>
82+
<execution>
83+
<id>flatten.clean</id>
84+
<phase>clean</phase>
85+
<goals>
86+
<goal>clean</goal>
87+
</goals>
88+
</execution>
89+
</executions>
90+
</plugin>
7691
<plugin>
7792
<groupId>io.github.deweyjose</groupId>
7893
<artifactId>graphqlcodegen-param-plugin</artifactId>

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@
126126
<build>
127127
<pluginManagement>
128128
<plugins>
129+
<plugin>
130+
<groupId>org.codehaus.mojo</groupId>
131+
<artifactId>flatten-maven-plugin</artifactId>
132+
<version>1.5.0</version>
133+
<configuration>
134+
<flattenMode>ossrh</flattenMode>
135+
<updatePomFile>true</updatePomFile>
136+
</configuration>
137+
</plugin>
129138
<plugin>
130139
<groupId>org.apache.maven.plugins</groupId>
131140
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)