Skip to content

Commit

Permalink
cleanup in publish script and gradle properties file
Browse files Browse the repository at this point in the history
  • Loading branch information
nisrulz committed Dec 5, 2023
1 parent 2daad22 commit e20ebd0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
21 changes: 7 additions & 14 deletions gradle.properties
Expand Up @@ -4,42 +4,35 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Sat Jan 22 21:59:15 CET 2022
android.useAndroidX=true
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Increase timeout when pushing to Sonatype (otherwise we get timeouts)s
# Increase timeout when pushing to Sonatype (otherwise we get timeouts)
systemProp.org.gradle.internal.http.socketTimeout=120000


####################### Publishing #######################
# Publish to Maven Central
SONATYPE_HOST=DEFAULT

# GPG Signing
# RELEASE_SIGNING_ENABLED=false

# Build Type
ANDROID_VARIANT_TO_PUBLISH=release

### POM Details
POM_ARTIFACT_ID=zentone
VERSION_NAME=2.2.0

POM_NAME=ZenTone
POM_ARTIFACT_ID=zentone
POM_DESCRIPTION=Easily generate audio tone of a specific frequency and volume in Android.
POM_INCEPTION_YEAR=2016
POM_URL=https://github.com/nisrulz/zentone/
POM_SCM_URL=https://github.com/nisrulz/zentone/
POM_URL=https://github.com/nisrulz/zentone
POM_SCM_URL=https://github.com/nisrulz/zentone
POM_SCM_CONNECTION=scm:git:git://github.com/nisrulz/zentone.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/nisrulz/zentone.git
POM_ISSUE_URL=https://github.com/nisrulz/zentone/issues

###########################################################
6 changes: 3 additions & 3 deletions publish_release.sh
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

# We manually run assemble & dokka before uploadArchives. If we only run uploadArchives,
# We manually run assemble & dokka before publishAllPublicationsToMavenCentral. If we only
# run publishAllPublicationsToMavenCentral,
# the assemble and dokka tasks are run interleaved on each module, which can cause
# connection timeouts to Sonatype (since we need to wait for assemble+dokka to finish).
# By front-loading the assemble+dokka tasks, the upload is much quicker.
./gradlew assembleRelease dokkaHtml publish closeAndReleaseRepository --no-daemon --no-parallel

./gradlew assembleRelease dokkaHtml publishAllPublicationsToMavenCentral --no-configuration-cache -PRELEASE_SIGNING_ENABLED=true

0 comments on commit e20ebd0

Please sign in to comment.