Skip to content

Commit

Permalink
Fixed configuration for signing plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjedraszczyk committed Nov 2, 2020
1 parent 6b1ca7a commit d009f05
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 22 deletions.
43 changes: 23 additions & 20 deletions app/aem/all/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
plugins {
id("com.cognifide.aem.package")
id("maven-publish")
`maven-publish`
signing
}

description = "APM (AEM Permission Management) - AEM All-In-One Package"

evaluationDependsOn(":app:aem:ui.apps")
evaluationDependsOn(":app:aem:ui.content")

apply(from = rootProject.file("app/common.gradle.kts"))
apply(from = rootProject.file("app/aem/common.gradle.kts"))

description = "APM (AEM Permission Management) - AEM All-In-One Package"

aem {
tasks {
packageCompose {
Expand All @@ -17,20 +21,19 @@ aem {
}
}

//publishing {
// publications {
// register<MavenPublication>("apmCrx") {
// groupId = project.group.toString() + ".crx"
// artifact(common.publicationArtifact("packageCompose"))
// afterEvaluate {
// artifactId = "apm-" + project.name
// version = rootProject.version
// }
// pom {
// name.set("APM - " + project.name)
// description.set(project.description)
// }
// }
// }
//}

publishing {
publications {
register<MavenPublication>("apmCrx") {
groupId = project.group.toString() + ".crx"
artifact(common.publicationArtifact("packageCompose"))
afterEvaluate {
artifactId = "apm-" + project.name
version = rootProject.version
}
pom {
name.set("APM - " + project.name)
description.set(project.description)
}
}
}
}
4 changes: 4 additions & 0 deletions app/aem/ui.apps/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ plugins {

description = "APM (AEM Permission Management) is an AEM based tool focused on streamlining the permission configuration. It provides a rich UX console tailored for administrators. They can write human readable scripts that handle user/group creation/deletion and permissions application, both in bulk. Through it's flexible grammar, exposed API, and high extensibility it vastly improves permission-based implementations."

evaluationDependsOn(":app:aem:api")
evaluationDependsOn(":app:aem:core")
evaluationDependsOn(":app:aem:actions.main")

apply(from = rootProject.file("app/common.gradle.kts"))
apply(from = rootProject.file("app/aem/common.gradle.kts"))

Expand Down
9 changes: 7 additions & 2 deletions gradle/common.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,14 @@ allprojects {
extensions.findByType(SigningExtension::class)?.apply {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
if (signingKey != null && signingPassword != null) {
useInMemoryPgpKeys(signingKey, signingPassword)
} else {
useGpgCmd()
}
extensions.findByType(PublishingExtension::class)?.publications?.configureEach {
sign(this)
val publication = this
sign(publication)
}
}
}
Expand Down

0 comments on commit d009f05

Please sign in to comment.