Skip to content

Commit

Permalink
improve the release process #498
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed Jul 24, 2024
1 parent a12eec5 commit ae916da
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 13 deletions.
6 changes: 2 additions & 4 deletions lphy-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
<parent>
<groupId>io.github.linguaphylo</groupId>
<artifactId>linguaphylo</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<!-- <groupId>io.github.linguaphylo</groupId>-->
<artifactId>lphy-base</artifactId>
<!-- <version>1.6.0-SNAPSHOT</version>-->

<dependencies>
<dependency>
<groupId>io.github.linguaphylo</groupId>
<artifactId>lphy</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>${revision}</version>
</dependency>

<dependency>
Expand Down
46 changes: 41 additions & 5 deletions lphy-studio/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
<parent>
<groupId>io.github.linguaphylo</groupId>
<artifactId>linguaphylo</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<!-- <groupId>io.github.linguaphylo</groupId>-->
<artifactId>lphy-studio</artifactId>
<!-- <version>1.6.0-SNAPSHOT</version>-->

<dependencies>
<dependency>
<groupId>io.github.linguaphylo</groupId>
<artifactId>lphy-base</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>${revision}</version>
</dependency>

<dependency>
Expand All @@ -32,8 +30,46 @@
<artifactId>markdowngenerator</artifactId>
<version>1.3.1.1</version>
</dependency>

</dependencies>

<build>
<plugins>
<!-- TODO not working -->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven</groupId>-->
<!-- <artifactId>maven-archiver</artifactId>-->
<!-- <version>3.6.2</version>-->
<!-- <configuration>-->
<!-- <archive>-->
<!-- <manifest>-->
<!-- <mainClass>lphystudio.app.LinguaPhyloStudio</mainClass>-->
<!-- </manifest>-->
<!-- </archive>-->
<!-- </configuration>-->
<!-- </plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
<configuration>
<descriptors>
<descriptor>src/assembly/assembly.xml</descriptor>
</descriptors>
<outputDirectory>${project.build.directory}</outputDirectory>
<appendAssemblyId>false</appendAssemblyId>
<finalName>${project.artifactId}-${project.version}</finalName>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
103 changes: 103 additions & 0 deletions lphy-studio/src/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 http://maven.apache.org/xsd/assembly-2.2.0.xsd">
<id>assembly</id>
<formats>
<format>dir</format>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<!-- <baseDirectory>${project.artifactId}-${project.version}</baseDirectory>-->

<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>io.github.linguaphylo:lphy</include>
<include>io.github.linguaphylo:lphy-base</include>
<include>io.github.linguaphylo:lphy-studio</include>
</includes>

<sources>
<includeModuleDirectory>false</includeModuleDirectory>
<fileSets>
<fileSet>
<outputDirectory>src/${module.artifactId}</outputDirectory>
<excludes>
<exclude>${project.build.directory}/**</exclude>
<exclude>**/target/**</exclude>
<exclude>**/lib-depr/**</exclude>
<exclude>lphystudio.xml*</exclude>
</excludes>
</fileSet>
</fileSets>
</sources>
</moduleSet>
</moduleSets>
<fileSets>
<!-- <fileSet>-->
<!-- <directory>${project.build.directory}</directory>-->
<!-- <outputDirectory>/lib</outputDirectory>-->
<!-- <includes>-->
<!-- <include>${module.artifactId}*.jar</include>-->
<!-- </includes>-->
<!-- </fileSet>-->
<fileSet>
<directory>../bin</directory>
<outputDirectory>bin</outputDirectory>
<fileMode>0755</fileMode> <!-- Sets the file mode to executable -->
</fileSet>
<fileSet>
<directory>${project.basedir}/src/main/resources</directory>
<outputDirectory>src</outputDirectory>
<includes>
<include>lphy*.*</include>
</includes>
</fileSet>
<fileSet>
<directory>../examples</directory>
<outputDirectory>examples</outputDirectory>
<includes>
<include>**/data/**</include>
<include>**/data/RSV2_11_samples.log.*</include>
</includes>
<excludes>
<exclude>**/todo/**</exclude>
<exclude>**/*.log</exclude>
<exclude>**/*.trees</exclude>
<exclude>**/*.txt</exclude>
<exclude>**/*.fasta</exclude>
<exclude>**/*.nexus</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>../tutorials</directory>
<outputDirectory>tutorials</outputDirectory>
<includes>
<include>data/*.*</include>
<include>*.lphy</include>
</includes>
</fileSet>
</fileSets>
<files>
<file>
<source>../README.md</source>
</file>
<file>
<source>../LICENSE</source>
</file>
</files>
<dependencySets>
<dependencySet>
<outputDirectory>/lib</outputDirectory>
<includes>
<!-- Include all dependencies. -->
<include>*:jar:*</include>
</includes>
<!-- <excludes>-->
<!-- &lt;!&ndash; Exclude all source-jar dependencies. &ndash;&gt;-->
<!-- <exclude>*:sources</exclude>-->
<!-- </excludes>-->
</dependencySet>
</dependencySets>
</assembly>
4 changes: 1 addition & 3 deletions lphy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
<parent>
<groupId>io.github.linguaphylo</groupId>
<artifactId>linguaphylo</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<!-- <groupId>io.github.linguaphylo</groupId>-->
<artifactId>lphy</artifactId>
<!-- <version>1.6.0-SNAPSHOT</version>-->

<dependencies>
<dependency>
Expand Down
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

<groupId>io.github.linguaphylo</groupId>
<artifactId>linguaphylo</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>${revision}</version>
<packaging>pom</packaging>

<name>linguaphylo</name>
<url>https://linguaphylo.github.io/</url>

<properties>
<revision>1.6.0-SNAPSHOT</revision>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -30,6 +31,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>

</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit ae916da

Please sign in to comment.