sling api in use
I am referring the javadoc https://docs.adobe.com/docs/en/aem/6-1/ref/javadoc/ here for JobManager API. Here it says there is a method addJob(String topic, Map<String,Object> properties). But acutal API doesn't have this method. I'm having following dependencies in the maven. Is this documentation error? Isn't recent version of sling used. If so, what's the version of sling used in 6.1.0?
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.jcr.api</artifactId>
<version>2.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.api</artifactId>
<version>2.4.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.event</artifactId>
<version>3.1.4</version>
<scope>provided</scope>
</dependency>