Comments (4)
I tried with TCCL switch with no effect, switching parentFirst
also with no effect.
/**
* Utility class for running operations on an explicitly specified class loader.
*
* @see <https://www.javacodegeeks.com/2016/08/remembering-reset-thread-context-class-loader.html>
*/
object TcclSwitch {
fun <T> execute(classLoader: ClassLoader, action: () -> T): T {
val originalClassLoader = Thread.currentThread().contextClassLoader
try {
Thread.currentThread().contextClassLoader = classLoader
return action()
} finally {
Thread.currentThread().contextClassLoader = originalClassLoader
}
}
}
val antClassPath = Path(antProject, sourceSet.runtimeClasspath.asPath)
TcclSwitch.execute(AntClassLoader.newAntClassLoader(javaClass.classLoader, antProject, antClassPath, true), {
antTask.execute()
})
so I am thinking about extending Gradle buildscript classpath dynamically only for aemProcessClasses...
from gradle-aem-plugin.
@pun-ky perhaps it would be prudent to give up using the SCR annotations?
Starting from AEM 6.2, there's another way to describe OSGi services and, when using Maven, all you need is the bundle plugin. Perhaps supporting this would be a better investment than retro-fitting the SCR annotations.
http://www.nateyolles.com/blog/2017/05/osgi-declarative-services-annotations-in-aem
http://blogs.adobe.com/experiencedelivers/experience-management/osgi/using-osgi-annotations-aem6-2/
from gradle-aem-plugin.
Agree. Time to move on. I will try to introduce support and examples for new annotations.
from gradle-aem-plugin.
SCR support will be discontinued due to #19
in 1.1.0 will be removed and covered by BND tool
see http://blogs.adobe.com/experiencedelivers/experience-management/osgi/using-osgi-annotations-aem6-2/
from gradle-aem-plugin.
Related Issues (20)
- Document how to integrate GAP with GEP and Maven build
- Kotlin Coroutine dies intermittently HOT 1
- Outdated Apache used HOT 3
- Improve launcher
- Logging in to AEMaaCS instances through access tokens HOT 2
- Easy telemetry for aem instances set up HOT 4
- Allow to run particular provision steps sequentialy HOT 1
- Force localhost urls for environment with type 'local' in launcher
- Update GAP Launcher to support the latest AEM project archetype HOT 1
- url is not set when using 'instance' shorthand method
- Launcher handling Maven project in subdir (separate VCS repo) HOT 2
- launcher should accept options for `wrapper` task HOT 1
- Smart parallel provisioning & pkg deploy HOT 1
- Allow to run Maven tests via Gradle task
- Instance agent files cannot be cleaned
- GAP Launcher moves Git folder HOT 2
- Quickstart dist URL prop mismatch after restartup HOT 4
- Loading instance env vars & secrets from gradle.properties file
- MvnModule: package pom is not resolved as ArtifactType.POM HOT 1
- GAP builds on Mac with Latest version of Docker (v4.24.0) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-aem-plugin.