Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ tasks.named('jarjar') { JarJarTask jjt ->
jjt.withManifest {
instruction '-nouses', 'true'
instruction 'Export-Package', "*;version=${groovyBundleVersion}"
instruction 'Fragment-Host', 'groovy' // GROOVY-9402, GROOVY-11570
def folder = file("${projectDir}/src/main/resources/META-INF/services")
if (folder.exists() && folder.listFiles().count { it.name ==~ /^(?!(org.codehaus.groovy.transform.ASTTransformation)$).*$/ } > 0) {
instruction 'Require-Capability', 'osgi.extender;filter:="(osgi.extender=osgi.serviceloader.processor)"'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private static FastStringService loadService() {
// that means you might need @GrabConfig(systemClassLoader=true) if getting json via grab
// ClassLoader rootLoader = DefaultGroovyMethods.getRootLoader(loader);
ServiceLoader<FastStringServiceFactory> serviceLoader = ServiceLoader.load(FastStringServiceFactory.class);
FastStringService found = null;
FastStringService found = new DefaultFastStringService();
for (FastStringServiceFactory factory : serviceLoader) {
FastStringService service = factory.getService();
if (service != null) {
Expand Down