Skip to content

Commit

Permalink
Variables, projects configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmasek committed Sep 15, 2023
1 parent b2a70e6 commit 1ba7d30
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 54 deletions.
2 changes: 1 addition & 1 deletion adobe-esign-connector-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.connector.adobe.esign</groupId>
<artifactId>adobe-esign-connector-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>10.0.11-SNAPSHOT</version>
<packaging>iar</packaging>
<dependencies>
<dependency>
Expand Down
1 change: 1 addition & 0 deletions adobe-esign-connector-product/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openapi.*
15 changes: 3 additions & 12 deletions adobe-esign-connector-product/pom.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<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>
<groupId>com.axonivy.connector.adobe.esign</groupId>
<artifactId>adobe-esign-connector-product</artifactId>
<version>10.0.11-SNAPSHOT</version>
<packaging>pom</packaging>

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

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -37,14 +32,10 @@
<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>
Expand Down
37 changes: 8 additions & 29 deletions adobe-esign-connector-product/product.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"installers": [
{
"id": "maven-import",
"id": "maven-dependency",
"data": {
"projects": [
"dependencies": [
{
"groupId": "MY-GROUP-ID",
"artifactId": "MY-PRODUCT-NAME-demo",
"groupId": "com.axonivy.connector.adobe.esign",
"artifactId": "adobe-esign-connector",
"version": "${version}",
"type": "iar"
}
Expand All @@ -23,12 +23,12 @@
}
},
{
"id": "maven-dependency",
"id": "maven-import",
"data": {
"dependencies": [
"projects": [
{
"groupId": "MY-GROUP-ID",
"artifactId": "MY-PRODUCT-NAME",
"groupId": "com.axonivy.connector.adobe.esign",
"artifactId": "adobe-esign-connector",
"version": "${version}",
"type": "iar"
}
Expand All @@ -43,27 +43,6 @@
}
]
}
},
{
"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"
}
}
]
}
}
]
}
10 changes: 2 additions & 8 deletions adobe-esign-connector-product/zip.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,9 @@
<directory>.</directory>
<includes>
<include>product.json</include>
<include>openapi.json</include>
<include>**/*.png</include>
</includes>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>openapi.*</include>
<include>README.md</include>
<include>**/*.png</include>
</includes>
</fileSet>
</fileSets>
Expand Down
37 changes: 34 additions & 3 deletions adobe-esign-connector/config/variables.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,39 @@
# == Variables ==
#
#
# You can define here your project Variables.
# If you want to define/override a Variable for a specific Environment,
# add an additional ‘variables.yaml’ file in a subdirectory in the ‘Config’ folder:
# If you want to define/override a Variable for a specific Environment,
# add an additional ‘variables.yaml’ file in a subdirectory in the ‘Config’ folder:
# '<project>/Config/_<environment>/variables.yaml
#
Variables:
adobe-sign-connector:
# Hostname of Adobe Sign server
host: ''

# Relative part of URL that is called after singing was finished
returnPage: ''

# Integration key from Adobe Sign configuration
integrationKey:

# Base URI for getting the access and refresh access tokens (without the `/token` or `/refresh` part)
baseUri: 'https://api.eu2.adobesign.com/oauth/v2'

# URL for the Authorization request (differs from tokens URL)
authenticationUri: 'https://secure.eu2.adobesign.com/public/oauth/v2'

# Adobe API Application Client ID
clientId: ''

# Adobe API Application Client Secret
# [password]
clientSecret: ''

# List of permissions that will be requested for the OAuth token
permissions: user_read:account user_write:account user_login:account agreement_read:account agreement_write:account agreement_send:account

# DO NOT MODIFY DIRECTLY, USE ADMIN SETUP PAGE. Info about the OAuth refresh token. Empty means there is no token initialized. To request a new token use the `Save and Request new Token` button
oauthToken: ''

# DO NOT MODIFY DIRECTLY, USE ADMIN SETUP PAGE. Info about the OAuth access token.
accessToken: ''
2 changes: 1 addition & 1 deletion adobe-esign-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.connector.adobe.esign</groupId>
<artifactId>adobe-esign-connector</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>10.0.11-SNAPSHOT</version>
<packaging>iar</packaging>
<properties>
<build.plugin.version>10.0.6</build.plugin.version>
Expand Down

0 comments on commit 1ba7d30

Please sign in to comment.