Skip to content

Commit

Permalink
Fix examples were not published + minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fathzer committed Sep 3, 2024
1 parent 6ef73a5 commit 85b3215
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 25 deletions.
7 changes: 6 additions & 1 deletion DeliveryProcess.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

1. Push the code in `master` branch.
It will trigger some workflows. Please note that `tutorial` workflow may fail! If it fails, it means that [Javaluator tutorial on Javaluator's site](https://javaluator.fathzer.com) require some updates.
If Sonar quality gate fail ... try to fix its complaints ;-)
If Sonar quality gate fails ... try to fix its complaints ;-)

2. Ensure *toolchain* is configured ([see how to do it](#how-to-configure-toolchain)) and the jdk required in [*pom.xml*](https://github.com/fathzer/javaluator/blob/master/pom.xml)) is available.

Expand All @@ -24,6 +24,11 @@ Of course, signing material (certificate and its password) are not included in t

3. Don't forget to push the updates in the production site!

## Update javadoc on javadoc.io

Once the Maven artifacts are available on [Maven central](https://search.maven.org/search?q=a:javaluator), open the link `https://javadoc.io/doc/com.fathzer/javaluator/*VERSION*/` were *VERSION* is the new release number.
javadoc.io will process the request and made the new release available after a couple of minutes.

## How to configure toolchain
Add a *toolchain.xml* file in your `.m2` directory.

Expand Down
22 changes: 0 additions & 22 deletions javaluator-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,4 @@
<version>3.0.5</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
11 changes: 11 additions & 0 deletions javaluator-examples/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
./detectDiff.sh ../../hosting/javaluator/www/en/doc/tutorial ./src/main/java/com/fathzer/soft/javaluator/examples
echo "result diff="$?

./detectDiff.sh ../../hosting/javaluator/www/en/doc/tutorial ../../hosting/javaluator/www/en/doc/tutorial
echo "result same dir="$?

./detectDiff.sh ../../hosting/javaluator/www/en/doc/tutorialx ./src/main/java/com/fathzer/soft/javaluator/examples
echo "result missing src dir="$?

./detectDiff.sh ../../hosting/javaluator/www/en/doc/tutorial ./src/main/java/com/fathzer/soft/javaluator/exampless
echo "result missing dest dir="$?
3 changes: 1 addition & 2 deletions javaluator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
<version>3.0.5</version>

<name>javaluator</name>
<description>Javaluator is a simple, but powerful, infix expression
evaluator for Java.</description>
<description>Javaluator is a simple, but powerful, infix expression evaluator for Java.</description>

<dependencies>
<dependency>
Expand Down

0 comments on commit 85b3215

Please sign in to comment.