Skip to content

Commit

Permalink
build: disable unsafe cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Oct 13, 2022
1 parent 21eb6fc commit 1f4d222
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,5 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@main
with:
arguments: build
arguments: build publishAllPublicationsToSonatypeRepository closeAndReleaseRepository --scan

- name: Upload to Sonatype
uses: gradle/gradle-build-action@main
with:
arguments: publishAllPublicationsToSonatypeRepository

- name: Promote to Maven Central
uses: gradle/gradle-build-action@main
with:
arguments: closeAndReleaseRepository
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ project.gradle.taskGraph.whenReady {
android {
compileSdk = 33
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
namespace = "dev.zxilly.notify.sdk"
defaultConfig {
minSdk = 24
targetSdk = 33
Expand Down Expand Up @@ -238,6 +239,8 @@ nexusStaging {
serverUrl = "https://s01.oss.sonatype.org/service/local/"
username = mavenUser
password = mavenPassword
packageGroup = "dev.zxilly"
stagingProfileId = "95214448af0738"
}

publishing {
Expand Down
7 changes: 2 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ android.useAndroidX=true

org.gradle.warning.mode=none

kotlin.version=1.7.10
kotlin.version=1.7.20
kotlin.stdlib.default.dependency=true

kotlin.code.style=official
Expand All @@ -14,7 +14,4 @@ kotlin.native.ignoreDisabledTargets=true
kotlin.native.binary.memoryModel=experimental

org.gradle.daemon=false
org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=512m

org.gradle.unsafe.configuration-cache=true
org.gradle.unsafe.configuration-cache-problems=warn
org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=512m

0 comments on commit 1f4d222

Please sign in to comment.