-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added Readme.md to use the clients
- Loading branch information
Ankit Mahato
authored and
Ankit Mahato
committed
Sep 1, 2024
1 parent
9df9c7f
commit bc9abd0
Showing
21 changed files
with
162 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+368 Bytes
clients/java/cac-client/bin/main/cac_client/CACClientException.class
Binary file not shown.
Binary file added
BIN
+915 Bytes
clients/java/cac-client/bin/main/cac_client/CacClient$RustLib.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'maven-publish' | ||
id 'java' | ||
id 'application' | ||
} | ||
|
||
group 'cac-client' | ||
version '1.0.0' | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'com.github.jnr:jnr-ffi:2.2.16' | ||
implementation 'com.github.jnr:jffi:1.3.13' | ||
// Add other dependencies your library needs | ||
} | ||
|
||
// Task to create a fat JAR | ||
tasks.register('fatJar', Jar) { | ||
archiveClassifier.set('fat') | ||
from sourceSets.main.output | ||
dependsOn configurations.runtimeClasspath | ||
from { | ||
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } | ||
} | ||
manifest { | ||
attributes 'Main-Class': 'CAC.Client' | ||
} | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
} | ||
|
||
// Make the fatJar task run as part of the build | ||
build.dependsOn fatJar | ||
|
||
group = 'com.yourdomain' | ||
version = '1.0-SNAPSHOT' | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
myLib(MavenPublication) { | ||
from (components.java) | ||
artifactId = 'CacClient' | ||
} | ||
} | ||
// repositories { | ||
// maven { | ||
// name = "GitHubPackages" | ||
// url = uri("https://maven.pkg.github.com/mahatoankitkumar/superposition") | ||
// credentials { | ||
// username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") | ||
// password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") | ||
// } | ||
// } | ||
// } | ||
} | ||
|
||
application { | ||
mainClassName = 'example.Demo' | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
clients/java/cac-client/src/main/java/cac_client/CACClientException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package cac_client; | ||
|
||
public class CACClientException extends Exception { | ||
public CACClientException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 5 additions & 11 deletions
16
.../cac-client/src/main/java/CAC/Client.java → ...ac-client/src/main/java/example/Demo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+368 Bytes
clients/java/exp-client/bin/main/exp_client/EXPClientException.class
Binary file not shown.
Binary file added
BIN
+909 Bytes
clients/java/exp-client/bin/main/exp_client/ExperimentationClient$RustLib.class
Binary file not shown.
Binary file added
BIN
+4.82 KB
clients/java/exp-client/bin/main/exp_client/ExperimentationClient.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,42 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'maven-publish' | ||
id 'java' | ||
id 'application' | ||
} | ||
|
||
group 'exp-client' | ||
version '1.0.0' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'com.github.jnr:jnr-ffi:2.2.16' | ||
implementation 'com.github.jnr:jffi:1.3.13' | ||
// Add other dependencies your library needs | ||
} | ||
|
||
application { | ||
mainClassName = 'CAC.Client' | ||
publishing { | ||
publications { | ||
myLib(MavenPublication) { | ||
from (components.java) | ||
artifactId = 'ExpClient' | ||
} | ||
} | ||
// repositories { | ||
// maven { | ||
// name = "GitHubPackages" | ||
// url = uri("https://maven.pkg.github.com/mahatoankitkumar/superposition") | ||
// credentials { | ||
// username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") | ||
// password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") | ||
// } | ||
// } | ||
// } | ||
} | ||
|
||
run { | ||
standardInput = System.in | ||
application { | ||
mainClassName = 'example.Demo' | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 7 additions & 11 deletions
18
.../exp-client/src/main/java/CAC/Client.java → ...xp-client/src/main/java/example/Demo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
clients/java/exp-client/src/main/java/exp_client/EXPClientException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package exp_client; | ||
|
||
public class EXPClientException extends Exception { | ||
public EXPClientException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters