Skip to content

Commit

Permalink
Merge pull request #419 from wttech/fix-build-script
Browse files Browse the repository at this point in the history
fixed build scripts
  • Loading branch information
dprzybyl authored Oct 29, 2023
2 parents 35f8366 + e350447 commit dbb23d3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/aem/common.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ plugins.withId("com.cognifide.aem.bundle") {
"implementation"("javax.annotation:javax.annotation-api:1.3.2")
"implementation"("javax.inject:javax.inject:1")
"implementation"("javax.servlet:javax.servlet-api:3.1.0")
}
}
}
}
10 changes: 1 addition & 9 deletions app/aem/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@ aem {
jar {
bundle {
importPackage("javax.annotation;version=0.0.0", "!android.os")
attribute("Sling-Model-Packages",
listOf(
"com.cognifide.apm.core.crypto",
"com.cognifide.apm.core.endpoints",
"com.cognifide.apm.core.ui.models",
"com.cognifide.apm.core.scripts",
"com.cognifide.apm.core.services",
"com.cognifide.apm.core.history"
).joinToString(","))
attribute("Sling-Model-Packages", "com.cognifide.apm.core")
excludePackage("org.antlr.stringtemplate", "org.antlr.v4.gui")
embedPackage("org.antlr:antlr4-runtime:4.7.2", "org.antlr.v4.runtime.*")
}
Expand Down
2 changes: 1 addition & 1 deletion app/aem/ui.apps.cloud/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apply(from = rootProject.file("app/aem/common.gradle.kts"))
aem {
tasks {
packageCompose {
mergePackageProject(":app:aem:ui.apps.base")
from(project(":app:aem:ui.apps.base").layout.projectDirectory.dir("src/main/content"))
installBundleProject(":app:aem:api")
installBundleProject(":app:aem:runmodes.cloud")
installBundleProject(":app:aem:core")
Expand Down
2 changes: 1 addition & 1 deletion app/aem/ui.apps/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apply(from = rootProject.file("app/aem/common.gradle.kts"))
aem {
tasks {
packageCompose {
mergePackageProject(":app:aem:ui.apps.base")
from(project(":app:aem:ui.apps.base").layout.projectDirectory.dir("src/main/content"))
installBundleProject(":app:aem:api")
installBundleProject(":app:aem:runmodes")
installBundleProject(":app:aem:core")
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ tasks {
apply(from = "gradle/common.gradle.kts")

fun formatVersion(version: String, position: ScmPosition) =
version + "-" + position.branch.replace("/", "").replace(".", "")
version + "-" + position.branch.replace("/", "").replace(".", "")
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit dbb23d3

Please sign in to comment.