You can pass any desire gradle properties into the Bnd Builder using the jar.manifest DSL.
jar {
manifest {
attributes('-groupid': group.toString(),
'artifactId': archivesBaseName)
}
}
You can then reference those variables in your bnd file.
Bundle-SymbolicName: ${-groupid}.${artifactId}
Note: I used -groupid since that is the Bnd convention and it uses in the pom generation code as the groupId if not otherwise specified.
Many Gradle project/task properties have non-String values, while all Bnd properties are Strings. So it would require special handling to flatten them to Strings.