Skip to content

Commit

Permalink
ci: use snapshots from central
Browse files Browse the repository at this point in the history
Signed-off-by: Josef Andersson <[email protected]>
  • Loading branch information
janderssonse committed Feb 20, 2025
1 parent f16572d commit f076971
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# shellcheck disable=SC2086
mvn $MAVEN_CLI_OPTS deploy jreleaser:full-release -DskipTests -s development/settings.xml
mvn $MAVEN_CLI_OPTS deploy jreleaser:full-release -DskipTests
- name: JReleaser output
if: always()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ on:
permissions:
contents: read

jobs:
jobs:
version-bump:
secrets: inherit
permissions:
contents: write
uses: ./.github/workflows/bump-temporary.yml
uses: diggsweden/.github/.github/workflows/version-bump-changelog.yml@main
with:
updatePom: true
file_pattern: pom.xml CHANGELOG.md

release-lib:
needs: [version-bump]
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ jobs:
PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# shellcheck disable=SC2086
mvn $MAVEN_CLI_OPTS test -s development/settings.xml
mvn $MAVEN_CLI_OPTS test
10 changes: 5 additions & 5 deletions development/code_quality.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ commit() {
printf '\n\n'
}

format() {
print_header 'FORMATTING (GOOGLE STYLE)'
mvn formatter:format "${MAVEN_CLI_OPTS[@]}" -DskipTests -s development/settings.xml
store_exit_code "$?" "Format" "${MISSING} ${RED}Format check failed, see logs (std out) and fix problems.${NC}\n" "${GREEN}${CHECKMARK}${CHECKMARK} Format check passed${NC}\n"
verify() {
print_header 'VERIFY'
mvn verify "${MAVEN_CLI_OPTS[@]}"
store_exit_code "$?" "Verify" "${MISSING} ${RED}Verify check failed, see logs (std out) and fix problems.${NC}\n" "${GREEN}${CHECKMARK}${CHECKMARK} Verify check passed${NC}\n"
printf '\n\n'
}

Expand Down Expand Up @@ -130,7 +130,7 @@ is_command_available 'sed' ''

lint
commit
format
verify
license

check_exit_codes
2 changes: 1 addition & 1 deletion docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ NOTE: The given tag will also set the POM-project version.
### Maven

```shell
mvn clean verify -s development/settings.xml
mvn clean verify
```

### VSCode
Expand Down
22 changes: 18 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SPDX-License-Identifier: CC0-1.0

<groupId>se.digg.wallet</groupId>
<artifactId>eudiw-wallet-token-lib</artifactId>
<version>0.0.8-SNAPSHOT</version>
<version>0.1.0-SNAPSHOT</version>
<name>EUDI Wallet -- Token Library</name>
<description>Library for handling data types in the EUDI Wallet PoC project.</description>
<url>https://github.com/diggsweden/eudiw-wallet-token-lib</url>
Expand Down Expand Up @@ -101,7 +101,7 @@ SPDX-License-Identifier: CC0-1.0
<dependency>
<groupId>se.digg.cose</groupId>
<artifactId>cose-lib</artifactId>
<version>2.0.4-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -200,7 +200,6 @@ SPDX-License-Identifier: CC0-1.0
<configuration>
<configFile>${project.basedir}/development/formatting/eclipse-java-google-style.xml</configFile>
<lineEnding>LF</lineEnding>
<verbose>true</verbose> <!-- Add this for more logging -->
<compilerSource>21</compilerSource>
<compilerCompliance>21</compilerCompliance>
<compilerTargetPlatform>21</compilerTargetPlatform>
Expand Down Expand Up @@ -279,4 +278,19 @@ SPDX-License-Identifier: CC0-1.0
</plugins>
</build>

</project>
<!-- Snapshots -->
<repositories>
<repository>
<name>Central Portal Snapshots</name>
<id>central-portal-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

</project>

0 comments on commit f076971

Please sign in to comment.