Skip to content

Commit

Permalink
Trying to fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
asm0dey committed Jul 11, 2023
1 parent bd616a5 commit d148d37
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/gradle.yml
# build:
# uses: ./.github/workflows/gradle.yml
deploy:
needs: build
# needs: build
strategy:
matrix:
include:
Expand Down
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
plugins {
id("root.publication")
//trick: for the same plugin versions in all sub-modules
alias(libs.plugins.androidLibrary).apply(false)
alias(libs.plugins.kotlinMultiplatform).apply(false)
id("io.github.gradle-nexus.publish-plugin") version "2.0.0-rc-1"
}
group = "com.github.asm0dey.dummylib"
version = "0.0.1"

nexusPublishing {
// Configure maven central repository
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
repositories {
sonatype()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ plugins {
signing
}

group = "com.github.asm0dey.dummylib"
version = "0.0.1"

val javadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
}
Expand Down Expand Up @@ -47,7 +44,7 @@ publishing {
}

signing {
if (System.clearProperty("signing.gnupg.keyName")!=null) {
if (System.getProperty("signing.gnupg.keyName") != null) {
useGpgCmd()
sign(publishing.publications)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
plugins {
id("io.github.gradle-nexus.publish-plugin")
}

nexusPublishing {
// Configure maven central repository
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
repositories {
sonatype()
}
}
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#Gradle
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
org.gradle.caching=true
org.gradle.configuration-cache=true

#Kotlin
kotlin.code.style=official
Expand Down

0 comments on commit d148d37

Please sign in to comment.