Skip to content

Commit

Permalink
Fixed Signing Issue (#192)
Browse files Browse the repository at this point in the history
* Fixed Signing Issue

* trying to fix Signing Issue

* trying to fix1 Signing Issue

* trying to fix2 Signing Issue

* Release
  • Loading branch information
ruthvikm authored Mar 14, 2024
1 parent 34a61da commit 532051b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-library-jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
distribution: 'temurin'
cache: 'gradle'
- name: Change wrapper permissions
run: chmod +x pi4micronaut-utils/gradlew
Expand Down
13 changes: 5 additions & 8 deletions pi4micronaut-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ java {
targetCompatibility = JavaVersion.toVersion("17")
}

tasks.build.dependsOn tasks.shadowJar

tasks.named('build').configure {
dependsOn 'javadoc'
Expand Down Expand Up @@ -104,7 +103,7 @@ publishing {
pom {
name = 'pi4micronaut-utils'
packaging = 'jar'
description = 'A Micronaut based library built to simplify using Micronaut with Raspberry Pi and external hardware components'
description = 'A Java-based library that uses the Micronaut framework and Pi4J to simplify the use of electronic components connected to a Raspberry Pi through GPIO '
url = "https://github.com/oss-slu/Pi4Micronaut"

licenses {
Expand Down Expand Up @@ -162,13 +161,11 @@ publishing {
}
}
}
}

signing {
required {
def signingKey = project.findProperty('GPG_KEY') ?: System.getenv('GPG_KEY')
def signingPassword = project.findProperty('GPG_PASSWORD') ?: System.getenv('GPG_PASSWORD')
useInMemoryPgpKeys(signingKey, signingPassword)
signing {
useInMemoryPgpKeys(System.getenv('GPG_KEY'), System.getenv('GPG_PASSWORD'))
sign publishing.publications.mavenJava
}
}


0 comments on commit 532051b

Please sign in to comment.