Skip to content

Commit

Permalink
Remove Sonatype supoporting
Browse files Browse the repository at this point in the history
  • Loading branch information
cosic committed Sep 13, 2024
1 parent 537ae02 commit 72f02ee
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 316 deletions.
58 changes: 0 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,39 +79,6 @@ plugins {
}
```

<details>
<summary>Snapshot builds are also available</summary>
___

You'll need to add the Sonatype snapshots repository.
Look for the actual version of the snapshot in the name of the opened `snapshot-<VERSION>` repository branch.

For general integration add next snippet in `./settings.gradle`

```kotlin
pluginManagement {

resolutionStrategy {
eachPlugin {
if(requested.id.namespace == "ru.cian") {
useModule("ru.cian.rustore-plugin:rustore-publish-gradle-plugin:<SNAPSHOT-VERSION>")
}
}
}

plugins {
id("ru.cian.rustore-publish-gradle-plugin") version rustorePublish apply false
}

repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
}
```
___

</details>

## Using the `apply` method

```groovy
Expand All @@ -129,31 +96,6 @@ apply plugin: 'com.android.application'
apply plugin: 'ru.cian.rustore-publish-gradle-plugin'
```

<details>
<summary>Snapshot builds are also available</summary>
___

You'll need to add the Sonatype snapshots repository.
Look for the actual version of the snapshot in the name of the opened `snapshot-<VERSION>` repository branch.

```groovy
buildscript {
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
classpath "ru.cian.rustore-plugin:rustore-publish-gradle-plugin:<VERSION>-SNAPSHOT"
}
}
apply plugin: 'com.android.application'
apply plugin: "ru.cian.rustore-publish-gradle-plugin"
```
___

</details>

## Quickstart Plugin Configuration

```kotlin
Expand Down
15 changes: 3 additions & 12 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
How To Release
==============

Due to Maven Central's very particular requirements, the release process is a bit
elaborate and requires a good deal of local configuration. This guide should walk
you through it. It won't do anyone outside of KeepSafe any good, but the workflow
is representative of just about any project deploying via Sonatype.

We currently deploy to both Maven Central (via Sonatype's OSS Nexus instance) and to
plugins.gradle.org.
We currently deploy the plugin only to the Gradle Portal plugins.gradle.org.

## Prerequisites

1. A *published* GPG code-signing key
1. A Sonatype Nexus OSS account with permission to publish in ru.cian
1. A plugins.gradle.org account with permission to publish in ru.cian
1. Permission to push directly to https://github.com/cianru/rustore-publish-gradle-plugin

## Contents page

1. [Setup](docs/releasing/01-setup.md)
2. [Pushing a SNAPSHOT build to local repository](docs/releasing/02-publish-a-snapshot-to-local-repository.md)
3. [Pushing a SNAPSHOT build to Sonatype](docs/releasing/03-publish-a-snapshot-to-sonatype.md)
4. [Pushing a release build to Sonatype](docs/releasing/04-publish-a-release-build-to-sonatype.md)
2. [Pushing a build to local repository](docs/releasing/02-publish-a-build-to-local-repository)
5. [Pushing a release build to Gradle Plugin Portal](docs/releasing/06-publish-a-release-build-to-gradle-plugin-portal.md)
6. [Prepare Release Commit](docs/releasing/07-prepare-release-commit.md)
7. [Prepare Next Snapshot Version Commit](docs/releasing/08-prepare-next-snapshot-version-commit.md)
7. [Prepare Next Alpha Version Commit](docs/releasing/08-prepare-alpha-version-commit)
11 changes: 0 additions & 11 deletions docs/releasing/01-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@

1. Add your GPG key to your github profile - this is required
for github to know that your commits and tags are "verified".
1. Configure your code-signing key in ~/.gradle.properties:
```gradle
signing.keyId=<key ID of your GPG signing key>
signing.password=<your key's passphrase>
signing.secretKeyRingFile=/path/to/your/secring.gpg
```
1. Configure your Sonatype credentials in ~/.gradle/gradle.properties:
```gradle
SONATYPE_NEXUS_USERNAME=<nexus username>
SONATYPE_NEXUS_PASSWORD=<nexus password>
```
1. Configure git with your codesigning key; make sure it's the same as the one
you use to sign binaries (i.e. it's the same one you adaded to gradle.properties):
```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@
```
cd ./plugin
```
2. Edit the `gradle.properties` file:
```bash
IS_SNAPSHOT=true
```
3. Publish to local repository
2. Publish to local repository
```bash
./gradlew :plugin:publishToMavenLocal
```
4. Remove local repository to apply remote build repository
3. Remove local repository to apply remote build repository
```bash
rm -rv ~/.m2/repository/ru/cian/rustore-publish-gradle-plugin/
```
15 changes: 0 additions & 15 deletions docs/releasing/03-publish-a-snapshot-to-sonatype.md

This file was deleted.

32 changes: 0 additions & 32 deletions docs/releasing/04-publish-a-release-build-to-sonatype.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
cd ./plugin
```
1. Edit the `gradle.properties` file:
```bash
IS_SNAPSHOT=false
```
Remove `-alpha<number>` from the `VERSION_NAME` and set the version to the release version. For example: `1.0.0`.
1. Verify that the everything works:
```bash
./gradlew clean check
Expand Down
12 changes: 12 additions & 0 deletions docs/releasing/08-prepare-alpha-version-commit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Prepare Next Snapshot Version Commit

1. Create new `alpha-<version>` Git branch
2. Open the plugin directory:
```
cd ./plugin
```
3. Edit the `gradle.properties` file to set new `VERSION_NAME`+ `-alpha<number>` version. For example: `1.0.0-alpha01`.
4. Make a *signed* commit:
```bash
git commit -m "Prepare next development version"
```
16 changes: 0 additions & 16 deletions docs/releasing/08-prepare-next-snapshot-version-commit.md

This file was deleted.

2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ kotlin = "1.9.23"
detekt = "1.23.4"
junitJupiter = "5.9.3"
androidGradlePlugin = "8.0.2"
sampleRustorePlugin = "0.5.0-SNAPSHOT"
sampleRustorePlugin = "0.5.0-alpha02"

[libraries]
appcompat = "androidx.appcompat:appcompat:1.6.1"
Expand Down
1 change: 0 additions & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ plugins {
alias(libs.plugins.kotlinJvm)
}

apply(from = "$projectDir/config/maven-publish.gradle")
apply(from = "$projectDir/config/gradle-portal.gradle")

detekt {
Expand Down
140 changes: 0 additions & 140 deletions plugin/config/maven-publish.gradle

This file was deleted.

Loading

0 comments on commit 72f02ee

Please sign in to comment.