Skip to content

Commit

Permalink
JCOBridge.jar postion update with posible override in Maven command line
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Nov 7, 2023
1 parent 1bac81b commit d30a898
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

- name: Install local file to be used within Javadoc section of generated POM
shell: bash
run: mvn install:install-file --no-transfer-progress -Dfile=../../bin/net6.0/JCOBridge.jar -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.8 -Dpackaging=jar -f ./src/jvm/src/net6.0.xml
run: mvn install:install-file --no-transfer-progress -Dfile=../../../bin/net6.0/JCOBridge.jar -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.8 -Dpackaging=jar -f ./src/jvm/src/net6.0.xml

- name: Publish net6.0 to Apache Maven Central
shell: bash
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:

- name: Install local file to be used within Javadoc section of generated POM
shell: bash
run: mvn install:install-file --no-transfer-progress -Dfile=../../bin/net7.0/JCOBridge.jar -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.8 -Dpackaging=jar -f ./src/jvm/src/net7.0.xml
run: mvn install:install-file --no-transfer-progress -Dfile=../../../bin/net7.0/JCOBridge.jar -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.8 -Dpackaging=jar -f ./src/jvm/src/net7.0.xml

- name: Publish net7.0 to Apache Maven Central
shell: bash
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:

- name: Install local file to be used within Javadoc section of generated POM
shell: bash
run: mvn install:install-file --no-transfer-progress -Dfile=../../bin/net462/JCOBridge.jar -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.8 -Dpackaging=jar -f ./src/jvm/src/net462.xml
run: mvn install:install-file --no-transfer-progress -Dfile=../../../bin/net462/JCOBridge.jar -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.8 -Dpackaging=jar -f ./src/jvm/src/net462.xml

- name: Publish net462 to Apache Maven Central
shell: bash
Expand Down
5 changes: 3 additions & 2 deletions src/net/engine/JCOPOMExtension.template
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<maven.compiler.source>POM_JDK_TARGET</maven.compiler.source>
<maven.compiler.target>POM_JDK_TARGET</maven.compiler.target>
<classpathfile>${basedir}/classpathfile.classpath</classpathfile>
<runtime_relative_dir>${basedir}/../../../bin/POM_RUNTIME_PLACEHOLDER/</runtime_relative_dir>
</properties>
<distributionManagement>
<snapshotRepository>
Expand Down Expand Up @@ -98,7 +99,7 @@
<configuration>
<compilerArgs>
<arg>-cp</arg>
<arg>${originalClassPath};${basedir}/../../bin/POM_RUNTIME_PLACEHOLDER/JCOBridge.jar</arg>
<arg>${originalClassPath};${runtime_relative_dir}JCOBridge.jar</arg>
</compilerArgs>
</configuration>
</plugin>
Expand Down Expand Up @@ -146,7 +147,7 @@
<version>2.9.1</version>
<configuration>
<links>
<link>https://www.jcobridge.com/api-java</link>
<link>https://www.jcobridge.com/api-java_POM_JCOBRIDGE_VERSION_PLACEHOLDER</link>
</links>
<quiet>true</quiet>
<source>POM_JDK_TARGET</source>
Expand Down
9 changes: 5 additions & 4 deletions src/net/engine/JCOPOMJCOReflector.template
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<maven.compiler.source>POM_JDK_TARGET</maven.compiler.source>
<maven.compiler.target>POM_JDK_TARGET</maven.compiler.target>
<classpathfile>${basedir}/classpathfile.classpath</classpathfile>
<runtime_relative_dir>${basedir}/../../../bin/POM_RUNTIME_PLACEHOLDER/</runtime_relative_dir>
</properties>
<distributionManagement>
<snapshotRepository>
Expand All @@ -55,7 +56,7 @@
<sourceDirectory>./JCOReflector</sourceDirectory>
<resources>
<resource>
<directory>${basedir}/../../bin/POM_RUNTIME_PLACEHOLDER/</directory>
<directory>${runtime_relative_dir}</directory>
<filtering>false</filtering>
<includes>
<include>JCOBridge.zip</include>
Expand Down Expand Up @@ -110,7 +111,7 @@
<configuration>
<compilerArgs>
<arg>-cp</arg>
<arg>${originalClassPath};${basedir}/../../bin/POM_RUNTIME_PLACEHOLDER/JCOBridge.jar</arg>
<arg>${originalClassPath};${runtime_relative_dir}JCOBridge.jar</arg>
</compilerArgs>
</configuration>
</plugin>
Expand Down Expand Up @@ -158,7 +159,7 @@ POM_SOURCEDIRECTORIES_PLACEHOLDER
<version>2.9.1</version>
<configuration>
<links>
<link>https://www.jcobridge.com/api-java</link>
<link>https://www.jcobridge.com/api-java_POM_JCOBRIDGE_VERSION_PLACEHOLDER</link>
</links>
<quiet>true</quiet>
<source>POM_JDK_TARGET</source>
Expand Down Expand Up @@ -212,4 +213,4 @@ POM_SOURCEDIRECTORIES_PLACEHOLDER
</plugin>
</plugins>
</build>
</project>
</project>

0 comments on commit d30a898

Please sign in to comment.