Create empty javadoc and source jar files for sonatype
Change-Id: Id60d9d13d9e9e62e15ae8f34080103934d3e1cbe
(cherry picked from commit a2b2739c9ab6a0aa015fc979592e7e7916af411f)
diff --git a/tools/build/onos-publish-catalog b/tools/build/onos-publish-catalog
index 6480e3f..f60304d 100755
--- a/tools/build/onos-publish-catalog
+++ b/tools/build/onos-publish-catalog
@@ -33,14 +33,6 @@
egrep -v '(\#|build/conf)' tools/build/publish-target-list
}
-function sourceJars {
- egrep -v '(\#|lib\:|p4runtime/proto|build/conf)' tools/build/publish-target-list
-}
-
-function javadocJars {
- egrep -v '(\#|lib\:|p4runtime/proto|build/conf)' tools/build/publish-target-list
-}
-
function testJars {
egrep -v '(\#|build/conf)' tools/build/publish-test-target-list
}
@@ -57,9 +49,9 @@
[ $libsOnly = true ] && exit 0
echo "Cataloging source jars..."
-writeCatalog $(sourceJars | sed 's/$/-sources/')
+writeCatalog $(jars | sed 's/$/-sources/')
echo "Cataloging javadoc jars..."
-writeCatalog $(javadocJars | sed 's/$/-javadoc/')
+writeCatalog $(jars | sed 's/$/-javadoc/')
echo "Cataloging oar files..."
writeCatalog $(bazel query 'kind("_onos_oar rule", //...)')