Skip to content

Commit

Permalink
fixing release
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau committed Nov 2, 2023
1 parent 3a00100 commit 6208bf8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
10 changes: 2 additions & 8 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,10 @@ git push origin v{NEW_VERSION}

* Upload the artifacts to Sonatype OSS Nexus
```bash
./gradlew uploadArchives --no-daemon --no-parallel
./gradlew publish --no-daemon --no-parallel && \
./gradlew closeAndReleaseRepository
```

* Release to Maven Central
* Login to Sonatype OSS Nexus: https://oss.sonatype.org/
* Click on **Staging Repositories**
* Scroll to the bottom, you should see an entry named `comsquareup-XXXX`
* Check the box next to the `comsquareup-XXXX` entry, click **Close** then **Confirm**
* Wait a bit, hit **Refresh**, until the *Status* for that column changes to *Closed*.
* Check the box next to the `comsquareup-XXXX` entry, click **Release** then **Confirm**
* Merge the release branch to main
```bash
git checkout main
Expand Down
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost
import kotlinx.validation.ApiValidationExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jlleitschuh.gradle.ktlint.KtlintExtension
Expand Down Expand Up @@ -71,6 +73,12 @@ subprojects {

apply(plugin = "org.jlleitschuh.gradle.ktlint")

plugins.withId("com.vanniktech.maven.publish.base") {
configure<MavenPublishBaseExtension> {
publishToMavenCentral(SonatypeHost.S01)
}
}

tasks.withType<KotlinCompile> {
kotlinOptions {
// Allow warnings when running from IDE, makes it easier to experiment.
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object Versions {
object Dependencies {
object Build {
const val Android = "com.android.tools.build:gradle:8.1.2"
const val MavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.14.0"
const val MavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.25.3"
val Kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.KotlinCompiler}"
const val Ktlint = "org.jlleitschuh.gradle:ktlint-gradle:11.6.1"
const val BinaryCompatibility = "org.jetbrains.kotlinx:binary-compatibility-validator:0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ android.useAndroidX=true
systemProp.org.gradle.internal.publish.checksums.insecure=true

GROUP=com.squareup.radiography
VERSION_NAME=2.5.0-SNAPSHOT
VERSION_NAME=2.5

POM_DESCRIPTION=Pretty printing of view hierarchies

Expand Down

0 comments on commit 6208bf8

Please sign in to comment.