Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create artifact with software list #1033

Merged
merged 2 commits into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ docs/build
release.properties
dist/
yarn-debug.log*
yarn-error.log*
yarn-error.log*
ddf-ui-deplist.out
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<module>ui-backend</module>
<module>ui-frontend</module>
<module>docs</module>
<module>software-list</module>
</modules>

<properties>
Expand Down
2 changes: 2 additions & 0 deletions software-list/generate-sw-list.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# generate the software list
mvn dependency:list -DexcludeTransitive=true -DincludeScope=runtime -DexcludeGroupIds=com.connexta,ddf,org.codice -pl '!docs,!ui-frontend' | grep -i compile | sort | uniq -u | cut -d ":" -f 2,4 | sed s/:/-/g > ddf-ui-deplist.out
68 changes: 68 additions & 0 deletions software-list/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright (c) Codice Foundation
*
* This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either
* version 3 of the License, or any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License is distributed along with this program and can be found at
* <http://www.gnu.org/licenses/lgpl.html>.
*
**/
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.codice.ddf.search</groupId>
<artifactId>catalog-ui</artifactId>
<version>5.2.13-SNAPSHOT</version>
</parent>
<artifactId>software-list</artifactId>
<groupId>org.codice.ddf.search</groupId>
<name>DDF UI :: Software List</name>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-sw-list</id>
<phase>prepare-package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<workingDirectory>${maven.multiModuleProjectDirectory}</workingDirectory>
<executable>${project.basedir}/generate-sw-list.sh</executable>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${maven.multiModuleProjectDirectory}/ddf-ui-deplist.out</file>
<type>txt</type>
<classifier>ddf-ui</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading