Avoid osgi dependency in pom
MODIFY
asciidoctorj-api/build.gradle
asciidoctorj-api/build.gradle
apply plugin: 'biz.aQute.bnd.builder'
dependencies {
- implementation "org.osgi:osgi.annotation:$osgiVersion"
+ compileOnly "org.osgi:osgi.annotation:$osgiVersion"
+ testRuntimeOnly "org.osgi:osgi.annotation:$osgiVersion"
}

Avoid osgi dependency in pom