Skip to content

Commit

Permalink
Fixed configuration of releasing and publishing plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjedraszczyk committed Jul 15, 2019
1 parent 62098a5 commit 0ba09e6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 13 deletions.
40 changes: 27 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import com.cognifide.gradle.aem.pkg.tasks.Compose
import pl.allegro.tech.build.axion.release.domain.TagNameSerializationConfig
import pl.allegro.tech.build.axion.release.domain.scm.ScmPosition

Expand All @@ -13,6 +14,20 @@ plugins {
defaultTasks = listOf(":aemSatisfy", ":aemDeploy")
description = "AEM Permission Management :: Root"

scmVersion {
useHighestVersion = true
ignoreUncommittedChanges = false
tag(closureOf<TagNameSerializationConfig> {
prefix = "apm"
})
}

project.version = scmVersion.version

allprojects {
group = "com.cognifide.aem"
}

aem {
tasks {
satisfy {
Expand All @@ -29,24 +44,23 @@ aem {
fromProject("bundle")
fromProject("content")
vaultDefinition {
version = rootProject.version as String
version = scmVersion.version as String
}
}
}
}

scmVersion {
useHighestVersion = true
ignoreUncommittedChanges = false
tag(closureOf<TagNameSerializationConfig> {
prefix = "apm"
})
}

project.version = scmVersion.version

allprojects {
group = "com.cognifide.aem"
publishing {
publications {
create<MavenPublication>("apm") {
val apmContent by tasks.named(Compose.NAME, Compose::class)
artifact(apmContent)
afterEvaluate {
artifactId = "apm"
version = project.version
}
}
}
}

tasks.rat {
Expand Down
11 changes: 11 additions & 0 deletions content/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ plugins {

description = "AEM Permission Management :: Package"

aem {
tasks {
compose {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
vaultDefinition {
version = rootProject.version as String
}
}
}
}

publishing {
publications {
create<MavenPublication>("apm") {
Expand Down

0 comments on commit 0ba09e6

Please sign in to comment.