Skip to content

Commit

Permalink
Return back to single JAR
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers committed Sep 2, 2024
1 parent dada924 commit 4c5a37f
Show file tree
Hide file tree
Showing 58 changed files with 5 additions and 289 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Create Jars for JNetCore
run: mvn --file ./src/jvm/jnetcore/pom.xml --no-transfer-progress package
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Create Jars for JNet
run: mvn --file ./src/jvm/jnet/pom.xml --no-transfer-progress package
env:
Expand Down Expand Up @@ -173,13 +166,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Create Jars for JNetCore
run: mvn --file ./src/jvm/jnetcore/pom.xml --no-transfer-progress package
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Create Jars for JNet
run: mvn --file ./src/jvm/jnet/pom.xml --no-transfer-progress package
env:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ jobs:
GITHUB_SIMPLIFIED_GENERATION: true

- if: matrix.language == 'java'
run: |
mvn --file ./src/jvm/jnetcore/pom.xml --no-transfer-progress package
mvn --file ./src/jvm/jnet/pom.xml --no-transfer-progress package
run: mvn --file ./src/jvm/jnet/pom.xml --no-transfer-progress package

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
7 changes: 0 additions & 7 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Create Jars for JNetCore
run: mvn --file ./src/jvm/jnetcore/pom.xml --no-transfer-progress package
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Create Jars for JNet
run: mvn --file ./src/jvm/jnet/pom.xml --no-transfer-progress package
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generateclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Create Jars for JNetCore
run: mvn "-Djcobridgepath=../../../binReflector/net8.0/JCOBridge.jar" --file ./src/jvm/jnetcore/pom.xml --no-transfer-progress package
- name: Create Jars for JNet
run: mvn "-Djcobridgepath=../../../binReflector/net8.0/JCOBridge.jar" --file ./src/jvm/jnet/pom.xml --no-transfer-progress package
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Create Jars for JNetCore
run: mvn --file ./src/jvm/jnetcore/pom.xml --no-transfer-progress package
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Create Jars for JNet
run: mvn --file ./src/jvm/jnet/pom.xml --no-transfer-progress package
env:
Expand Down Expand Up @@ -146,13 +139,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Create Jars for JNetCore
run: mvn --file ./src/jvm/jnetcore/pom.xml --no-transfer-progress package
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Create Jars for JNet
run: mvn --file ./src/jvm/jnet/pom.xml --no-transfer-progress package
env:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Create Jars for JNetCore
run: mvn --file ./src/jvm/jnetcore/pom.xml --no-transfer-progress package
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Create Jars for JNet
run: mvn --file ./src/jvm/jnet/pom.xml --no-transfer-progress package
env:
Expand Down
213 changes: 0 additions & 213 deletions src/jvm/jnetcore/pom.xml

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion src/net/JNet/JNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<None Remove="Generated\**" />
<None Remove="Specific\**" />
</ItemGroup>
<ItemGroup>
<ItemGroup Condition="'$(GITHUB_SIMPLIFIED_GENERATION)' != 'true'">
<Compile Remove="Generated\Java\Util\Function\**" />
<None Remove="Generated\Java\Util\Function\**" />
<Compile Remove="Developed\Java\Lang\*Error.cs" />
Expand Down
26 changes: 1 addition & 25 deletions src/net/JNet/JNetCoreBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,31 +221,7 @@ public sealed override IEnumerable<KeyValuePair<string, string>> JVMOptions
/// <summary>
/// A list of paths to be used in initialization of JVM ClassPath
/// </summary>
protected virtual IList<string> PathToParse
{
get
{
var lst = new List<string>();

var assembly = typeof(JNetCoreBase<>).Assembly;
var version = assembly.GetName().Version.ToString();
// 1. check first full version
var jnetcoreFile = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(assembly.Location), JARsSubFolder, $"jnetcore-{version}.jar");
if (!System.IO.File.Exists(jnetcoreFile) && version.EndsWith(".0"))
{
// 2. if not exist remove last part of version
version = version.Substring(0, version.LastIndexOf(".0"));
jnetcoreFile = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(assembly.Location), JARsSubFolder, $"jnetcore-{version}.jar");
}
if (!System.IO.File.Exists(jnetcoreFile))
{
throw new System.IO.FileNotFoundException("Unable to identify JNet Core Jar location", jnetcoreFile);
}

lst.Add(jnetcoreFile);
return lst;
}
}
protected virtual IList<string> PathToParse => new List<string>();

string buildClassPath()
{
Expand Down

0 comments on commit 4c5a37f

Please sign in to comment.