Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-rew committed May 2, 2023
0 parents commit fa3c82d
Show file tree
Hide file tree
Showing 11 changed files with 287 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_spaces = true
insert_final_newline = true

# trailing spaces in markdown indicate word wrap
[*.md]
trim_trailing_spaces = false
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CI-Build

on:
push:
pull_request:
schedule:
- cron: '21 21 * * *'
workflow_dispatch:

jobs:
build:
uses: axonivy-market/github-workflows/.github/workflows/ci.yml@v2
11 changes: 11 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Dev-Build

on:
push:
schedule:
- cron: '21 21 * * *'
workflow_dispatch:

jobs:
build:
uses: axonivy-market/github-workflows/.github/workflows/dev.yml@v2
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Release-Build

on: workflow_dispatch

jobs:
build:
uses: axonivy-market/github-workflows/.github/workflows/release.yml@v2
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# general
Thumbs.db
.DS_Store
*~
*.log

# java
*.class
hs_err_pid*

# maven
target/

# ivy
lib/mvn-deps/
logs/
src_dataClasses/
src_wsproc/
15 changes: 15 additions & 0 deletions MY-PRODUCT-NAME-product/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# MY-PRODUCT-NAME

YOUR DESCRIPTION GOES HERE

## Demo

YOUR DEMO DESCRIPTION GOES HERE

## Setup

YOUR SETUP DESCRIPTION GOES HERE

```
@variables.yaml@
```
67 changes: 67 additions & 0 deletions MY-PRODUCT-NAME-product/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.market</groupId>
<artifactId>MY-PRODUCT-NAME-product</artifactId>
<version>10.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
<variables.yaml.file>../MY-PRODUCT-NAME/config/variables.yaml</variables.yaml.file>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>zip.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<skip>${skip-readme}</skip>
<target>
<copy todir="${project.build.directory}">
<fileset dir="../../" includes="doc/**" />
</copy>
<copy file="README.md" tofile="${project.build.directory}/README.md" />
<loadfile property="variables.yaml" srcFile="${variables.yaml.file}" encoding="UTF-8" failonerror="false" />
<replace file="${project.build.directory}/README.md" token="@variables.yaml@" value="${variables.yaml}" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
69 changes: 69 additions & 0 deletions MY-PRODUCT-NAME-product/product.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"installers": [
{
"id": "maven-import",
"data": {
"projects": [
{
"groupId": "MY-GROUP-ID",
"artifactId": "MY-PRODUCT-NAME-demo",
"version": "${version}",
"type": "iar"
}
],
"repositories": [
{
"id": "maven.axonivy.com",
"url": "https://maven.axonivy.com",
"snapshots": {
"enabled": "true"
}
}
]
}
},
{
"id": "maven-dependency",
"data": {
"dependencies": [
{
"groupId": "MY-GROUP-ID",
"artifactId": "MY-PRODUCT-NAME",
"version": "${version}",
"type": "iar"
}
],
"repositories": [
{
"id": "maven.axonivy.com",
"url": "https://maven.axonivy.com",
"snapshots": {
"enabled": "true"
}
}
]
}
},
{
"id": "maven-dropins",
"data": {
"dependencies": [
{
"groupId": "MY-GROUP-ID",
"artifactId": "MY-PRODUCT-NAME",
"version": "${version}"
}
],
"repositories": [
{
"id": "maven.axonivy.com",
"url": "https://maven.axonivy.com",
"snapshots": {
"enabled": "true"
}
}
]
}
}
]
}
26 changes: 26 additions & 0 deletions MY-PRODUCT-NAME-product/zip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>zip</id>
<includeBaseDirectory>false</includeBaseDirectory>

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

<fileSets>
<fileSet>
<directory>.</directory>
<includes>
<include>product.json</include>
<include>openapi.json</include>
<include>**/*.png</include>
</includes>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>README.md</include>
</includes>
</fileSet>
</fileSets>
</assembly>
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# MY-PRODUCT-NAME

[![CI Build](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml)

"YOUR SHORT DESCRIPTION GOES HERE"

Read our [documentation](MY-PRODUCT-NAME-product/README.md).
43 changes: 43 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.market</groupId><!-- your group id: e.g. com.axonivy.connector.<myconnector> or com.axonivy.utils.<myutil> -->
<name>my-product</name><!-- fill your product name -->
<artifactId>my-product-modules</artifactId><!-- fill your product name + a "-modules" postfix -->
<version>10.0.0-SNAPSHOT</version><!-- identicate your minimal compliant ivy version with the first 2 digits -->
<packaging>pom</packaging>

<modules>
<module>${project.name}</module>
<module>${project.name}-demo</module>
<module>${project.name}-test</module>
<module>${project.name}-product</module>
</modules>

<scm>
<developerConnection>scm:git:https://github.com/axonivy-market/${project.name}.git</developerConnection>
<tag>HEAD</tag>
</scm>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>

0 comments on commit fa3c82d

Please sign in to comment.