Skip to content

Commit fae9cad

Browse files
authored
flatten to produce explicit version numbers (#42)
flatten to produce explicit version numbers that are expected by central for publishing
1 parent 27c7187 commit fae9cad

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
*/build/*
77
/target/*
88
**/*/target/*
9+
**/.flattened-pom.xml

kotlin-insight-client/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,20 @@
8787
</resources>
8888

8989
<plugins>
90+
<!-- flatten to produce explicit version numbers that are expected by central for publishing -->
91+
<plugin>
92+
<groupId>org.codehaus.mojo</groupId>
93+
<artifactId>flatten-maven-plugin</artifactId>
94+
<version>${maven.flatten.version}</version>
95+
<executions>
96+
<execution>
97+
<goals>
98+
<goal>flatten</goal>
99+
</goals>
100+
<phase>process-resources</phase>
101+
</execution>
102+
</executions>
103+
</plugin>
90104
<plugin>
91105
<groupId>org.apache.maven.plugins</groupId>
92106
<artifactId>maven-enforcer-plugin</artifactId>

kotlin-jira-client/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,20 @@
8989
</resources>
9090

9191
<plugins>
92+
<!-- flatten to produce explicit version numbers that are expected by central for publishing -->
93+
<plugin>
94+
<groupId>org.codehaus.mojo</groupId>
95+
<artifactId>flatten-maven-plugin</artifactId>
96+
<version>${maven.flatten.version}</version>
97+
<executions>
98+
<execution>
99+
<goals>
100+
<goal>flatten</goal>
101+
</goals>
102+
<phase>process-resources</phase>
103+
</execution>
104+
</executions>
105+
</plugin>
92106
<plugin>
93107
<groupId>org.apache.maven.plugins</groupId>
94108
<artifactId>maven-enforcer-plugin</artifactId>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<maven.compiler.source>17</maven.compiler.source>
2727
<maven.compiler.target>17</maven.compiler.target>
2828
<maven.resources.plugin.version>3.3.1</maven.resources.plugin.version>
29+
<maven.flatten.version>1.7.1</maven.flatten.version>
2930
<kotlin.compiler.jvmTarget>17</kotlin.compiler.jvmTarget>
3031
<kotlin.code.style>official</kotlin.code.style>
3132
<kotlin.version>2.0.20</kotlin.version>

0 commit comments

Comments
 (0)