Skip to content

Commit

Permalink
fix #206 publish CLI tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Hoß committed Jun 19, 2022
1 parent ea7658d commit afee798
Show file tree
Hide file tree
Showing 7 changed files with 237 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ jobs:
with:
name: yosql-tooling-ant
path: ./yosql-tooling/yosql-tooling-ant/target/yosql-tooling-ant-*-jvm*
- id: upload-cli-tooling
name: Upload CLI Tooling
uses: actions/upload-artifact@v3
with:
name: yosql-tooling-cli
path: ./yosql-tooling/yosql-tooling-cli/target/yosql-tooling-cli-*-jvm*
- id: gradle
name: Gradle Tooling
run: cd ./yosql-examples/yosql-examples-gradle/ && ./gradlew build run
Expand Down
58 changes: 58 additions & 0 deletions yosql-tooling/yosql-tooling-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,64 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
<configuration>
<licenseHeaderFile>${project.basedir}/src/assembly/licenseHeaderFile</licenseHeaderFile>
<repositoryName>lib</repositoryName>
<repositoryLayout>flat</repositoryLayout>
<programs>
<program>
<mainClass>wtf.metio.yosql.tooling.cli.YoSQL</mainClass>
<id>yosql</id>
</program>
</programs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>jre-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${project.basedir}/src/assembly/jvm.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>artifacts</goal>
</goals>
</execution>
</executions>
<configuration>
<algorithms>
<algorithm>SHA-256</algorithm>
<algorithm>SHA-512</algorithm>
</algorithms>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
40 changes: 40 additions & 0 deletions yosql-tooling/yosql-tooling-cli/src/assembly/jvm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!--
~ This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
~ directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
~ in the LICENSE file.
-->

<!--
~ This file is part of ilo. It is subject to the license terms in the LICENSE file found in the top-level
~ directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of ilo,
~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
~ in the LICENSE file.
-->
<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">

<id>jvm</id>
<includeBaseDirectory>false</includeBaseDirectory>

<formats>
<format>zip</format>
</formats>

<fileSets>
<fileSet>
<directory>${project.build.directory}/appassembler</directory>
<outputDirectory/>
</fileSet>
<fileSet>
<directory>${project.basedir}/../..</directory>
<outputDirectory/>
<includes>
<include>README.md</include>
<include>LICENSE</include>
</includes>
</fileSet>
</fileSets>

</assembly>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This file is part of ilo. It is subject to the license terms in the LICENSE file found in the top-level
directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of ilo,
including this file, may be copied, modified, propagated, or distributed except according to the terms contained
in the LICENSE file.
43 changes: 43 additions & 0 deletions yosql-tooling/yosql-tooling-cli/src/assembly/linux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
~ This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
~ directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
~ in the LICENSE file.
-->

<!--
~ This file is part of ilo. It is subject to the license terms in the LICENSE file found in the top-level
~ directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of ilo,
~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
~ in the LICENSE file.
-->
<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">

<id>linux</id>
<includeBaseDirectory>false</includeBaseDirectory>

<formats>
<format>zip</format>
</formats>

<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory/>
<includes>
<include>yosql</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/../..</directory>
<outputDirectory/>
<includes>
<include>README.md</include>
<include>LICENSE</include>
</includes>
</fileSet>
</fileSets>

</assembly>
43 changes: 43 additions & 0 deletions yosql-tooling/yosql-tooling-cli/src/assembly/mac.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
~ This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
~ directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
~ in the LICENSE file.
-->

<!--
~ This file is part of ilo. It is subject to the license terms in the LICENSE file found in the top-level
~ directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of ilo,
~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
~ in the LICENSE file.
-->
<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">

<id>mac</id>
<includeBaseDirectory>false</includeBaseDirectory>

<formats>
<format>zip</format>
</formats>

<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory/>
<includes>
<include>yosql</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/../..</directory>
<outputDirectory/>
<includes>
<include>README.md</include>
<include>LICENSE</include>
</includes>
</fileSet>
</fileSets>

</assembly>
43 changes: 43 additions & 0 deletions yosql-tooling/yosql-tooling-cli/src/assembly/windows.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
~ This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
~ directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
~ in the LICENSE file.
-->

<!--
~ This file is part of ilo. It is subject to the license terms in the LICENSE file found in the top-level
~ directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of ilo,
~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
~ in the LICENSE file.
-->
<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">

<id>windows</id>
<includeBaseDirectory>false</includeBaseDirectory>

<formats>
<format>zip</format>
</formats>

<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory/>
<includes>
<include>yosql.exe</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/../..</directory>
<outputDirectory/>
<includes>
<include>README.md</include>
<include>LICENSE</include>
</includes>
</fileSet>
</fileSets>

</assembly>

0 comments on commit afee798

Please sign in to comment.