This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-deploy-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new da2ad90 Build with Maven4 (#57)
da2ad90 is described below
commit da2ad90ceeb9790e4d19a600ba9629b94626c60c
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Tue Jun 11 16:25:06 2024 +0200
Build with Maven4 (#57)
* Build with Maven4
* Check if files was deployed
---
.github/workflows/maven-verify.yml | 2 ++
.../verify.groovy | 17 +++++++++++++++--
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/maven-verify.yml
b/.github/workflows/maven-verify.yml
index cd3c451..065619b 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -25,4 +25,6 @@ jobs:
build:
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
+ with:
+ maven4-enabled: true
diff --git
a/src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy
b/src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy
index 4232c45..31dede3 100644
--- a/src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy
+++ b/src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy
@@ -17,6 +17,19 @@
* under the License.
*/
-def buildLog = new File ( basedir, "build.log")
+def expectedDeploys = [
+
'org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom',
+
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0-sources.jar',
+
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.jar',
+
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.pom',
+
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0-sources.jar',
+
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.jar',
+
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.pom'
+]
+
+def repoDir = new File ( basedir, 'target/repo')
+
+def missingDeploys = expectedDeploys.findAll { ! new File(repoDir,
it).isFile() }
+
+assert missingDeploys.size() == 0
-assert buildLog.text =~
/Uploading.*file:target\/repo\/org\/apache\/maven\/plugins\/deploy\/it\/org\.eclipse\.osgi\/1\.0\/org\.eclipse\.osgi-1\.0-sources\.jar/