spring-projects / spring-statemachine

Spring Statemachine is a framework for application developers to use state machine concepts with Spring.
1.51k stars 598 forks source link

Maven central sync should only push relevant artifacts #1149

Closed jvalkeal closed 3 months ago

jvalkeal commented 3 months ago

Now that we're signing files which are deployed into artifactory, workflow which deploy those into central should not take docs zip(and it's related files).

Looks like artifactory aql below does a trick:

{
  "files": [
    {
      "aql": {
        "items.find": {
          "$and": [
            {
              "@build.name": "${buildname}",
              "@build.number": "${buildnumber}"
            },
            {
              "path": { "$match": "org/springframework/statemachine/spring-statemachine-*" }
            }
          ]
        }
      },
      "target": "nexus/"
    }
  ]
}

This takes all from build name/number and rely on a fact that root level docs artifact don't start with spring-statemachine- in a path.