Skip to content

Commit

Permalink
Removed GitHub plugin repo config (#500)
Browse files Browse the repository at this point in the history
No longer required.
  • Loading branch information
freemanjp committed Aug 21, 2022
1 parent 0b274b1 commit 8afc02f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 40 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/maven-deploy.yml
Expand Up @@ -20,35 +20,14 @@ jobs:
java-version: 11
distribution: 'temurin'
gpg-private-key: ${{ secrets.GPG_KEY }}
server-id: ossrh
server-username: OSSRH_USER
server-password: OSSRH_TOKEN
- name: Cache local Maven repository
uses: gantsign/maven-periodic-cache-action@v1
with:
key-suffix: '-deploy'
additional-path: '!~/.m2/repository/com/github/gantsign/maven'
- name: Configure maven settings.xml
shell: bash
run: |
mkdir -p ~/.m2
cat << 'EOF' > ~/.m2/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<username>${env.OSSRH_USER}</username>
<password>${env.OSSRH_TOKEN}</password>
</server>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>
EOF
- name: Deploy with Maven
run: |
./mvnw deploy \
Expand All @@ -63,4 +42,3 @@ jobs:
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 0 additions & 15 deletions pom.xml
Expand Up @@ -536,10 +536,6 @@
</bannedPlugins>
<requireNoRepositories>
<message>Best Practice is to never define repositories in pom.xml (use a repository manager instead)</message>
<allowedPluginRepositories>
<!-- for kotlin-maven-plugin-tools -->
<repository>github</repository>
</allowedPluginRepositories>
</requireNoRepositories>
<banDuplicateClasses>
<findAllDuplicates>true</findAllDuplicates>
Expand Down Expand Up @@ -800,17 +796,6 @@
<url>https://travis-ci.org/gantsign/ktlint-maven-plugin</url>
</ciManagement>

<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>github</id>
<name>kotlin-maven-plugin-tools</name>
<url>https://maven.pkg.github.com/gantsign/kotlin-maven-plugin-tools</url>
</pluginRepository>
</pluginRepositories>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
Expand Down

0 comments on commit 8afc02f

Please sign in to comment.