Apache Sling Scripting SPI

June 2, 2026 ยท View on GitHub

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central scripting License

Apache Sling Scripting SPI

This module is part of the Apache Sling project.

This bundle provides:

  • org.apache.sling.scripting.spi.bundle: SPI interfaces used by the Apache Sling Servlets Resolver and Apache Sling Scripting Core to discover and execute bundled scripts (precompiled or interpreted) for request rendering.
  • org.apache.sling.api.resource.type: a ResourceType value object for parsing Sling resource type strings.

The API is built for Java 17 and supports both Jakarta Servlet API (preferred) and legacy javax.servlet API for backward compatibility.

Build and verification

mvn clean install
mvn test
mvn verify
mvn spotless:check

Integration Tests

The integration tests for bundled scripts are provided by the org.apache.sling.scripting.bundle.tracker.it project.