Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed GitHub plugin repo config #500

Merged
merged 1 commit into from Aug 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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