Skip to content

Commit

Permalink
Flattening pom for nstest.
Browse files Browse the repository at this point in the history
  • Loading branch information
byarger-ebay committed Dec 13, 2022
1 parent d5facf4 commit 6878c34
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "${{ github.workspace }}/NST/target/*.jar,${{ github.workspace }}/pom.xml"
artifacts: "${{ github.workspace }}/NST/target/*.jar"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to the Maven Central Repository
run: mvn --no-transfer-progress --batch-mode deploy -pl com.ebay.nst:nstest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ test-output/
target/
BreezeTestsStats/
TestReport.csv
.flattened-pom.xml
28 changes: 28 additions & 0 deletions NST/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,34 @@
<build>
<plugins>

<!-- Flatten Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.3.0</version>
<configuration>
<flattenMode>oss</flattenMode>
</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>

<!-- Maven release plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<maven.compiler.plugin.version>3.6.0</maven.compiler.plugin.version>
<maven.surefire.plugin.version>2.9</maven.surefire.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<nstest.version>1.0.3</nstest.version>
<nstest.version>1.0.4</nstest.version>
<testng.version>7.5</testng.version>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
Expand Down

0 comments on commit 6878c34

Please sign in to comment.