Skip to content

Commit

Permalink
Improve missing_cqs.sh
Browse files Browse the repository at this point in the history
- update dash version
- remove obsolete exclusions
- add possibility to auto create cqs
  • Loading branch information
cguglielmo committed Mar 4, 2024
1 parent ad28dc1 commit 5197f47
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions org.eclipse.scout.rt/missing_cqs.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/bin/bash

#
# Copyright (c) 2010, 2023 BSI Business Systems Integration AG
# Copyright (c) 2010, 2024 BSI Business Systems Integration AG
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#

# Check for missing CQs for all runtime modules (excluding tests or build dependencies)
# See https://www.eclipse.org/projects/handbook/#ip-prereq-diligence
# See https://github.com/eclipse/dash-licenses
Expand All @@ -23,12 +24,18 @@ mvn clean install -DskipTests=true >/dev/null
cd ..

# dash version must match the one present in pom of the master branch
DASH_VERSION="0.0.1-SNAPSHOT"
DASH_VERSION="1.1.1-SNAPSHOT"

# The tool can automatically create gitlab issues for every necessary review
# To do so, create an api token at https://gitlab.eclipse.org/-/profile/personal_access_tokens, update TOKEN variable below and uncomment REVIEW variable
# See also https://github.com/eclipse/dash-licenses?tab=readme-ov-file#automatic-ip-team-review-requests
TOKEN="ADD API TOKEN HERE"
REVIEW=""
#REVIEW=-review -token $TOKEN -repo https://github.com/eclipse-scout/scout.rt -project technology.scout

echo "MISSING CQs OF ALL TRANSITIVE JAVA DEPENDENCIES:"
mvn dependency:list -pl="-org.eclipse.scout.rt:org.eclipse.scout.rt.ui.html.selenium,-org.eclipse.scout.rt:org.eclipse.scout.rt.platform.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.shared.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.server.commons.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.server.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.server.jaxws.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.server.jdbc.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.dataobject.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.jackson.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.mom.api.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.mom.jms.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.mail.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.security.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.rest.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.rest.jersey.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.client.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.svg.client.test,-org.eclipse.scout.rt:org.eclipse.scout.rt.ui.html.test" |
grep -Poh "\S+:(system|provided|compile)" | sort | uniq | java -jar $HOME/.m2/repository/org/eclipse/dash/org.eclipse.dash.licenses/$DASH_VERSION/org.eclipse.dash.licenses-$DASH_VERSION.jar - |
grep -v "com.google.code.findbugs/jsr305/3.0.2" | grep -v "xml-apis/xml-apis-ext/1.3.04" # don't report as there CQs available: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=18738 and https://dev.eclipse.org/ipzilla/show_bug.cgi?id=7082
grep -Poh "\S+:(system|provided|compile)" | sort | uniq | java -jar $HOME/.m2/repository/org/eclipse/dash/org.eclipse.dash.licenses/$DASH_VERSION/org.eclipse.dash.licenses-$DASH_VERSION.jar - $REVIEW
echo "--------------------------------------"

cd ..
Expand All @@ -43,7 +50,7 @@ function checkJs() {
pnpm install --ignore-scripts --force >/dev/null
pnpm list -P -depth=1000 --parseable | grep -Po "[^\\\\]+@[^\\\\]+" | sort | uniq |
grep -v $name | grep -v "chartjs-plugin-datalabels@2.2.0" | # don't report as there is a CQ available: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=22596
java -jar $HOME/.m2/repository/org/eclipse/dash/org.eclipse.dash.licenses/$DASH_VERSION/org.eclipse.dash.licenses-$DASH_VERSION.jar -
java -jar $HOME/.m2/repository/org/eclipse/dash/org.eclipse.dash.licenses/$DASH_VERSION/org.eclipse.dash.licenses-$DASH_VERSION.jar - $REVIEW
echo "--------------------------------------"
cd ..
}
Expand Down

0 comments on commit 5197f47

Please sign in to comment.