Skip to content

Commit

Permalink
✨ disable oss repo in some case #279
Browse files Browse the repository at this point in the history
  • Loading branch information
trydofor committed Jul 24, 2024
1 parent 85cf145 commit 79436d5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Test Coverage ${{ steps.settings.outputs.WINGS_VERSION }} ${{ steps.settings.outputs.GIT_BRANCH }}
if: steps.settings.outputs.MVN_COVERAGE == 'true'
run: |
mvn -P '!module-example,!module-devs' -Dmaven.test.skip=true clean install
mvn -P 'repo-snapshot,!module-example,!module-devs' -Dmaven.test.skip=true clean install
mvn -pl ':devs-codegen' -Ddevs-initdb=true clean test
mvn -P 'report-coverage,!module-example,!module-devs' -Dmaven.test.failure.ignore=$TESTFAILS_IGNORE test
mvn -P 'report-coverage' -pl ':devs-coverage' -am jacoco:report-aggregate
Expand All @@ -181,7 +181,7 @@ jobs:
if: steps.settings.outputs.MVN_DEPLOY_OSSRH == 'true'
run: >
mvn
-P 'deploy,deploy-oss,!module-example,!module-devs'
-P 'repo-snapshot,deploy,deploy-oss,!module-example,!module-devs'
${{ steps.settings.outputs.MVN_REVISION }}
-Dgpg.passphrase=${MVN_GPG_PASS}
-Dorg.slf4j.simpleLogger.log.lombok=WARN
Expand All @@ -200,7 +200,7 @@ jobs:
continue-on-error: ${{ inputs.deployAltrh != 'true' }}
run: >
mvn
-P 'deploy,deploy-alt,deploy-old,!module-example,!module-devs'
-P 'repo-snapshot,deploy,deploy-alt,deploy-old,!module-example,!module-devs'
${{ steps.settings.outputs.MVN_REVISION }}
-Dgpg.passphrase=${MVN_GPG_PASS}
-Dorg.slf4j.simpleLogger.log.lombok=WARN
Expand Down
30 changes: 18 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -959,18 +959,6 @@
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<id>oss-sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<profiles>
<profile>
<id>module-example</id>
Expand All @@ -981,6 +969,24 @@
<module>example</module>
</modules>
</profile>
<profile>
<id>repo-snapshot</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>oss-sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>wings-kotlin-1test</id>
<activation>
Expand Down

0 comments on commit 79436d5

Please sign in to comment.