Skip to content

Commit

Permalink
Build with Maven4 (#57)
Browse files Browse the repository at this point in the history
* Build with Maven4
* Check if files was deployed
  • Loading branch information
slawekjaranowski authored Jun 11, 2024
1 parent 6962699 commit da2ad90
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ jobs:
build:
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
with:
maven4-enabled: true

Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit da2ad90

Please sign in to comment.