def dependency_bundle(name): """ Generates dependency tag like this: <dependency> <groupId>org.kaaproject.kaa.examples</groupId> <artifactId>cellmonitordemo</artifactId> <version>${kaa-sample-apps.version}</version> </dependency> """ print("[INFO] Creating new dependency tag for bundle=%s" % name) return E.dependency( etree.Comment(COMMENT_AUTOGENERATED), E.groupId("org.kaaproject.kaa.examples"), E.artifactId(name + "demo"), E.version("${kaa-sample-apps.version}"), )
def dependency(name, suffix): """ Generates dependency tag like this: <dependency> <groupId>org.kaaproject.kaa.examples</groupId> <artifactId>profilingdemo</artifactId> <version>${kaa-sample-apps.version}</version> <classifier>profiling-src-cpp</classifier> <type>tar.gz</type> <scope>provided</scope> </dependency> """ print("[INFO] Creating new dependency tag for name=%s, suffix=%s" % (name, suffix)) return E.dependency( etree.Comment(COMMENT_AUTOGENERATED), E.groupId("org.kaaproject.kaa.examples"), E.artifactId(name + "demo"), E.version("${kaa-sample-apps.version}"), E.classifier(name + "-src-" + suffix), E.type("tar.gz"), E.scope("provided"), )