Skip to content

Commit

Permalink
OK-443 maven flatten plugin kirjastoon
Browse files Browse the repository at this point in the history
  • Loading branch information
marjakari committed Dec 12, 2024
1 parent f5e034c commit bb09091
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
if: ${{ success() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn deploy --batch-mode -DskipTests
run: mvn deploy --batch-mode -DskipTests -pl kirjasto -am
# deploy vain default branchista: ${{ success() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }}
deploy-zips:
needs: [ build-and-test ]
Expand Down
25 changes: 25 additions & 0 deletions kirjasto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,31 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit bb09091

Please sign in to comment.