Skip to content

Commit

Permalink
#252: include documentation into release (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille authored Mar 18, 2024
1 parent 128bf5c commit 70ea7c4
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
40 changes: 33 additions & 7 deletions cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,17 @@
<configuration>
<artifacts>
<artifact>
<file>target/${project.artifactId}-linux-x64.tar.gz</file>
<file>${project.build.directory}/${project.artifactId}-linux-x64.tar.gz</file>
<type>tar.gz</type>
<classifier>linux</classifier>
</artifact>
<artifact>
<file>target/${project.artifactId}-windows-x64.tar.gz</file>
<file>${project.build.directory}/${project.artifactId}-windows-x64.tar.gz</file>
<type>tar.gz</type>
<classifier>windows</classifier>
</artifact>
<artifact>
<file>target/${project.artifactId}-mac-x64.tar.gz</file>
<file>${project.build.directory}/${project.artifactId}-mac-x64.tar.gz</file>
<type>tar.gz</type>
<classifier>mac</classifier>
</artifact>
Expand Down Expand Up @@ -206,16 +206,42 @@
<agent>
<enabled>true</enabled>
</agent>
<imageName>
${imageName}
</imageName>
<imageName>${imageName}</imageName>
<buildArgs>
<arg>--enable-url-protocols=https</arg>
<arg>-H:IncludeResources="nls/.*"</arg>
<arg>--initialize-at-build-time=org.apache.commons.compress</arg>
</buildArgs>
</configuration>
</plugin>
<plugin>
<!-- Include documentation into release -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-documentation</id>
<phase>prepare-package</phase>
<goals>
<goal>copy</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>ide-doc</artifactId>
<version>${project.version}</version>
<type>pdf</type>
<destFileName>IDEasy-documentation.pdf</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/package</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Expand All @@ -230,7 +256,7 @@
<finalName>${releaseName}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>/src/main/assembly/exec.xml</descriptor>
<descriptor>/src/main/assembly/release.xml</descriptor>
</descriptors>
</configuration>
</execution>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static CustomToolRepository of(IdeContext context) {
String url = getString(jsonToolObject, "url", defaultUrl);
boolean osAgnostic = getBoolean(jsonToolObject, "os-agnostic", Boolean.FALSE);
boolean archAgnostic = getBoolean(jsonToolObject, "arch-agnostic", Boolean.TRUE);
if (defaultUrl.isEmpty()) {
if (url.isEmpty()) {
throw new IllegalStateException("Missing 'url' property for tool '" + name + "'!");
}
// TODO
Expand Down

0 comments on commit 70ea7c4

Please sign in to comment.