pun-ky

pun-ky

AEM Lead Developer, Adobe Certified Expert, Principal Software Engineer.

Member Since 6 years ago

Cognifide, Poznań

Experience Points
21
follower
Lessons Completed
8
follow
Lessons Completed
102
stars
Best Reply Awards
9
repos

252 contributions in the last year

Pinned
⚡ Swiss army knife for Adobe Experience Manager related automation. Environment setup & incremental AEM application build which takes seconds, not minutes.
⚡ Search Web Console Plugin for Apache Felix
⚡ Example Multi-Module AEM application built by Gradle Build System
⚡ Example Single-Module AEM application built by Gradle Build System
⚡ Gradle Fork Plugin - Project generator based on live archetypes (example projects) & interactive gradle.properties file generator
⚡ GitIgnore File Filter
Activity
Oct
13
2 days ago
push

pun-ky push wttech/gradle-aem-plugin

pun-ky
pun-ky

Update local-instance-plugin.md

Link fix

pun-ky
pun-ky

Merge pull request #864 from marcin-bakowski/patch-1

Update local-instance-plugin.md

commit sha: b9c07ebfccf93a9bdfdcb44a4a0ede829ae9904c

push time in 2 days ago
pull request

pun-ky pull request wttech/gradle-aem-plugin

pun-ky
pun-ky

Update local-instance-plugin.md

Link fix

Oct
8
1 week ago
Activity icon
issue

pun-ky issue wttech/gradle-aem-plugin

pun-ky
pun-ky

Provide API to define own provision task runnable after deploying AEM apps

this feature is sometimes requested

tasks {
  register("appProvision") {
    mustRunAfter(":app:aem:all:deploy")
    doLast {
      aem.provision {
        configureOsgi("com.my.app.MyService", mapOf(/* values */)) {
          condition { onEnv("dev") }
        }
      }
    }
  }
}
Oct
7
1 week ago
push

pun-ky push wttech/gradle-environment-plugin

pun-ky
pun-ky

Docker Desktop 4.1.0 alignment

pun-ky
pun-ky

Merge pull request #27 from wttech/docker-desktop-4.1.0-alignment

Docker Desktop 4.1.0 alignment

commit sha: ef66ea26f266033b0035a6cb689be2fb0df0248e

push time in 1 week ago
Activity icon
created branch

pun-ky in wttech/gradle-environment-plugin create branch docker-desktop-4.1.0-alignment

createdAt 1 week ago
Oct
5
1 week ago
Activity icon
issue

pun-ky issue neva-dev/gradle-fork-plugin

pun-ky
pun-ky

Introduce `-Pfork.execute` flag

which will be useful for cases when changes from updated TPL need to be applied without updating values already saved on GUI dialog

Activity icon
issue

pun-ky issue comment neva-dev/gradle-fork-plugin

pun-ky
pun-ky

Cannot use a property if it isn't used in the "config" session

Hi,

I have a property that is used on the controller of other property, like this:

    define("baseDir") {
      defaultValue = "/default/path"
    }
    define("targetPath") {
      enabled = false
      controller {
        value = other("baseDir").value + '/' + other("artifactId").value
      }
    }

The properity "baseDir" isn't used the "config" session, just in the "properties" session.

When I try to run "fork", I get the error Property named 'baseDir' does not exist. This always happen with properties that aren't used in the "config" session. Is there any way to override this behaviour?

Regards,

Rodrigo

pun-ky
pun-ky

since defined properties are shared across configs dynamic method should be used in a form: dynamic("configName") so dynamic("fork")  or dynamic("props")

Oct
4
1 week ago
Activity icon
issue

pun-ky issue comment adobe/aem-guides-wknd

pun-ky
pun-ky

Site search does not work (NPE)

Expected Behaviour

Site search works.

Actual Behaviour

Site search does not work (on author and on publish/dispatcher).

image

image

Reproduce Scenario (including but not limited to)

In the top right corner, in the search field enter any phrase - e.g "page"

Platform and Version

AEM SDK 2021.9 (recent), WKND site / downloaded ZIP from master branch

pun-ky
pun-ky

funny thing, if a phrase giving some results is used like "adventures" instead of "page", there is no 500 ;) so only lacking results case is not working properly. 
 

started
started time in 1 week ago
Activity icon
issue

pun-ky issue adobe/aem-guides-wknd

pun-ky
pun-ky

Site search does not work (NPE)

Expected Behaviour

Site search works.

Actual Behaviour

Site search does not work (on author and on publish/dispatcher).

image

image

Reproduce Scenario (including but not limited to)

In the top right corner, in the search field enter any phrase - e.g "page"

Platform and Version

AEM SDK 2021.9 (recent), WKND site / downloaded ZIP from master branch

Activity icon
issue

pun-ky issue comment neva-dev/gradle-fork-plugin

pun-ky
pun-ky

Cannot use a property if it isn't used in the "config" session

Hi,

I have a property that is used on the controller of other property, like this:

    define("baseDir") {
      defaultValue = "/default/path"
    }
    define("targetPath") {
      enabled = false
      controller {
        value = other("baseDir").value + '/' + other("artifactId").value
      }
    }

The properity "baseDir" isn't used the "config" session, just in the "properties" session.

When I try to run "fork", I get the error Property named 'baseDir' does not exist. This always happen with properties that aren't used in the "config" session. Is there any way to override this behaviour?

Regards,

Rodrigo

pun-ky
pun-ky

try to declare property as dynamic("props")

Activity icon
issue

pun-ky issue comment wttech/aem-stubs

pun-ky
pun-ky

NPE when creating STUB with no headers section defined

https://github.com/wttech/aem-stubs/blob/d1935aa4c431d31769f532d3f949739c07c55340/wiremock/src/main/java/com/cognifide/aem/stubs/wiremock/transformers/PebbleTransformer.java#L97

Wiremock does not require the headers section for the request/response sections. Please consider some reasonable defaults when header section is not present.

{
  "mappings": [
    {
      "request": {
        "method": "GET",
        "url": "/my-document-pdf"
      },
      "response": {
        "status": 200,
        "bodyFileName": "documents/my.pdf"
      }
    }
  ]
}
java.lang.NullPointerException: null
	at com.cognifide.aem.stubs.wiremock.transformers.PebbleTransformer.hasTextMimeType(PebbleTransformer.java:97) [com.cognifide.aem.stubs.wiremock:2.0.1]
	at com.cognifide.aem.stubs.wiremock.transformers.PebbleTransformer.lambda$transformBody$3(PebbleTransformer.java:88) [com.cognifide.aem.stubs.wiremock:2.0.1]
	at java.util.Optional.map(Optional.java:215)
pun-ky
pun-ky

IMO pebble templating is introducing many incompatibilities and I am quite sure that supporting it should be dropped

Oct
3
1 week ago
Sep
23
3 weeks ago
started
started time in 3 weeks ago
Sep
20
3 weeks ago
push

pun-ky push wttech/gradle-environment-plugin

pun-ky
pun-ky

Merge branch 'master' of github.com:Cognifide/gradle-environment-plugin

commit sha: 5d9bb5461b7c2e28ca4971ca7eb3b800fde0bff8

push time in 3 weeks ago
Sep
17
4 weeks ago
Activity icon
delete

pun-ky in wttech/gradle-aem-plugin delete branch mvn-build-poms

deleted time in 4 weeks ago
push

pun-ky push wttech/gradle-aem-plugin

pun-ky
pun-ky

Maven hybrid build / depgraph hardened

pun-ky
pun-ky

Merge pull request #860 from wttech/mvn-build-poms

Maven hybrid build with poms in the middle

commit sha: c99c1e38d9a939c69fe4445ca7e7bbfd47ef305c

push time in 4 weeks ago
pull request

pun-ky pull request wttech/gradle-aem-plugin

pun-ky
pun-ky

Maven hybrid build with poms in the middle

implements #840

Activity icon
issue

pun-ky issue wttech/gradle-aem-plugin

pun-ky
pun-ky

Install POMs of the middle Maven projects

Consider Maven build structure;

a/b/c

  • a is a root POM
  • b is POM project in the middle
  • c is a AEM content package project 

Potentially, C module build will fail when invoked by GAP mvn build because it will only install POM of the root project then try to build C which requires to have installed B POM at first.

pull request

pun-ky pull request wttech/gradle-aem-plugin

pun-ky
pun-ky

Maven hybrid build with poms in the middle

implements #840

Activity icon
created branch

pun-ky in wttech/gradle-aem-plugin create branch mvn-build-poms

createdAt 4 weeks ago
Activity icon
issue

pun-ky issue wttech/gradle-aem-plugin

pun-ky
pun-ky

Add package deployed notifications when hybrid build is used

Activity icon
issue

pun-ky issue comment wttech/gradle-aem-plugin

pun-ky
pun-ky

Add package deployed notifications when hybrid build is used

Previous