Skip to content

Commit

Permalink
Merge pull request #769 from kohlschutter/ck/parentpom
Browse files Browse the repository at this point in the history
Build everything from parent POM; unbreak github Action build
  • Loading branch information
renaudpawlak authored Oct 12, 2023
2 parents ee4ba96 + 2e4fee1 commit 8e1bd4d
Show file tree
Hide file tree
Showing 264 changed files with 19,040 additions and 163 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,31 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
cache: 'maven'

- name: runs exhaustive tests
run: |
export JSWEET_VERBOSE=false
cd transpiler
mvn clean install -DskipSigning=true
cd ..
echo 'clone test repositories'
git clone https://github.com/lgrignon/jsweet-java-runtime-transpilation-tests.git
git clone https://github.com/lgrignon/j4ts-example.git
echo 'transpile legacy j4ts sources'
cd jsweet-java-runtime-transpilation-tests
mvn clean generate-sources
cd ..
echo 'run j4ts tests'
cd j4ts-example
mvn clean compile && node target/j4ts-example-bundle.js
mvn clean install
#cd transpiler
#mvn clean install
#cd ..
#echo 'clone test repositories'
#git clone https://github.com/lgrignon/jsweet-java-runtime-transpilation-tests.git
#git clone https://github.com/lgrignon/j4ts-example.git
#echo 'transpile legacy j4ts sources'
#cd jsweet-java-runtime-transpilation-tests
#mvn clean generate-sources
#cd ..
#echo 'run j4ts tests'
#cd j4ts-example
#mvn clean compile && node target/j4ts-example-bundle.js
4 changes: 2 additions & 2 deletions candy-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
<dependency>
<groupId>org.jsweet</groupId>
<artifactId>jsweet-core</artifactId>
<version>5-SNAPSHOT</version>
<version>5.3.1-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -277,4 +277,4 @@
</snapshotRepository>
</distributionManagement>

</project>
</project>
84 changes: 63 additions & 21 deletions core-lib/es5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>jsweet-core</artifactId>
<name>JSweet Core Lib</name>
<description>JavaScript API for JSweet</description>
<version>5.3.0</version>
<version>5.3.1-SNAPSHOT</version>
<properties>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
Expand Down Expand Up @@ -99,26 +99,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<configuration>
<skip>${skipSigning}</skip>

</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -152,6 +132,68 @@
</pluginManagement>
</build>

<profiles>
<profile>
<id>signed</id>
<activation>
<property>
<name>signed</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<configuration>
<skip>${skipSigning}</skip>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>use-snapshots</id>
<activation>
<property>
<name>use-snapshots</name>
</property>
</activation>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<url>https://repository.apache.org/snapshots/</url>
</pluginRepository>
<pluginRepository>
<id>sonatype.snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<distributionManagement>
<repository>
<id>jsweet-release</id>
Expand Down
83 changes: 64 additions & 19 deletions core-lib/es6/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jsweet</groupId>
<artifactId>jsweet-core</artifactId>
<version>6.3.0</version>
<version>6.3.1-SNAPSHOT</version>
<name>JSweet Core Lib</name>
<description>JavaScript API for JSweet</description>
<url>http://www.jsweet.org</url>
Expand Down Expand Up @@ -166,24 +166,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<configuration>
<skip>${skipSigning}</skip>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

<pluginManagement>
Expand Down Expand Up @@ -223,6 +205,69 @@
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>signed</id>
<activation>
<property>
<name>signed</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<configuration>
<skip>${skipSigning}</skip>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>use-snapshots</id>
<activation>
<property>
<name>use-snapshots</name>
</property>
</activation>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<url>https://repository.apache.org/snapshots/</url>
</pluginRepository>
<pluginRepository>
<id>sonatype.snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<distributionManagement>
<repository>
<id>jsweet-release</id>
Expand Down
1 change: 1 addition & 0 deletions file-visitor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
12 changes: 12 additions & 0 deletions file-visitor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# file-visitor

This utility written in Java allows for visiting a set of files within a directory an apply bulk action written in so-called file visitors. It can be specialized to perform any job on the visited files.

## How to use

- Implement the ``FileVisitor`` interface.
- Invoke the ``FileVisitor.scan(root, fileVisitors)`` method, where ``root`` is the root file to be scanned, and ``fileVisitors`` are you ``FileVisitor`` implementations.

## Licence

Open Source Apache 2
71 changes: 71 additions & 0 deletions file-visitor/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<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>
<groupId>org.cincheo</groupId>
<artifactId>file-visitor</artifactId>
<version>1.0.0</version>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>org.cincheo.file_visitor.Main</argument>
</arguments>
<workingDirectory>${dir}</workingDirectory>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.7</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.3.2</version>
</dependency>
</dependencies>

<!-- Use the JSweet repo (should have a Cincheo repo at some point) -->
<distributionManagement>
<repository>
<id>jsweet-release</id>
<name>libs-release</name>
<url>http://repository.jsweet.org/artifactory/libs-release-local</url>
</repository>
<snapshotRepository>
<id>jsweet-snapshots</id>
<name>libs-snapshot</name>
<url>http://repository.jsweet.org/artifactory/libs-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
</project>
Loading

0 comments on commit 8e1bd4d

Please sign in to comment.