-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from Keyfactor/feat/migrate_erce_to_gradle
feat!: converted erce from maven to gradle
- Loading branch information
Showing
17 changed files
with
529 additions
and
252 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.DS_Store | ||
/target/ | ||
.gradle | ||
.gradle/** |
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,23 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>erce</name> | ||
<comment></comment> | ||
<name>Easy-Rest-Client-EJBCA</name> | ||
<comment>Project Easy-Rest-Client-EJBCA created by Buildship.</comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.m2e.core.maven2Builder</name> | ||
<name>org.eclipse.buildship.core.gradleprojectbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
<nature>org.eclipse.buildship.core.gradleprojectnature</nature> | ||
</natures> | ||
</projectDescription> |
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,13 @@ | ||
arguments= | ||
auto.sync=false | ||
build.scans.enabled=false | ||
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) | ||
connection.project.dir= | ||
eclipse.preferences.version=1 | ||
gradle.user.home= | ||
java.home=/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home | ||
jvm.arguments= | ||
offline.mode=false | ||
override.workspace.settings=false | ||
show.console.view=false | ||
show.executions.view=false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
|
||
plugins { | ||
`java-library` | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { | ||
url = uri("file:////Users/mikek/eclipse-workspace/Easy-Rest-Client-EJBCA/lib") | ||
} | ||
|
||
maven { | ||
url = uri("https://repo.maven.apache.org/maven2/") | ||
} | ||
} | ||
|
||
dependencies { | ||
api(libs.com.googlecode.json.simple.json.simple) | ||
api(libs.org.bouncycastle.bcprov.jdk18on) | ||
api(libs.org.bouncycastle.bcutil.jdk18on) | ||
api(libs.org.bouncycastle.bcpkix.jdk18on) | ||
api(libs.commons.io.commons.io) | ||
api(libs.org.apache.httpcomponents.httpclient) | ||
api(libs.org.apache.logging.log4j.log4j.core) | ||
api(libs.org.apache.logging.log4j.log4j.v1.v2.api) | ||
api(libs.org.apache.commons.commons.lang3) | ||
api(libs.commons.lang.commons.lang) | ||
api(libs.org.codehaus.mojo.exec.maven.plugin) | ||
api(libs.org.jboss.resteasy.resteasy.client) | ||
api(libs.jakarta.ws.rs.jakarta.ws.rs.api) | ||
api(libs.com.keyfactor.keyfactor.commons.cli) | ||
api(libs.com.keyfactor.x509.common.util) | ||
} | ||
|
||
tasks.register<Copy>("copyDependencies") { | ||
from(configurations.runtimeClasspath.get().filter { it.name.endsWith(".jar") }) { | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE // Options: EXCLUDE, INCLUDE, or WARN | ||
} | ||
into(layout.buildDirectory.dir("lib")) | ||
} | ||
|
||
tasks.build { | ||
dependsOn("copyDependencies") | ||
} | ||
|
||
tasks.register("cli") { | ||
group = "Application" | ||
description = "Run the EJBCA CLI with arguments." | ||
println("Hello") | ||
} | ||
|
||
tasks.jar { | ||
// Specify the directory where the JAR file will be created | ||
destinationDirectory.set(layout.buildDirectory) | ||
|
||
manifest { | ||
attributes["Main-Class"] = "com.keyfactor.ejbca.client.ErceClient" | ||
val classPathEntries = configurations.runtimeClasspath.get().map { | ||
"lib/${it.name}" // Prefix each entry with "lib/" | ||
} | ||
attributes("Class-Path" to classPathEntries.joinToString(" ")) | ||
} | ||
} | ||
|
||
group = "com.keyfactor" | ||
version = "1.0.0" | ||
description = "Easy REST Client for EJBCA" | ||
java.sourceCompatibility = JavaVersion.VERSION_17 | ||
|
||
|
||
sourceSets { | ||
main { | ||
java { | ||
setSrcDirs(listOf("src")) | ||
} | ||
} | ||
test { | ||
java { | ||
setSrcDirs(listOf("src-test")) | ||
} | ||
} | ||
} | ||
|
||
|
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,6 @@ | ||
/classes/ | ||
/lib/ | ||
/reports/ | ||
/resources/ | ||
/tmp/ | ||
/erce-*.jar |
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 @@ | ||
# This file was generated by the Gradle 'init' task. | ||
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties | ||
|
||
org.gradle.configuration-cache=true | ||
org.gradle.parallel=true | ||
org.gradle.caching=true | ||
|
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,38 @@ | ||
# This file was generated by the Gradle 'init' task. | ||
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format | ||
|
||
[versions] | ||
com-googlecode-json-simple-json-simple = "1.1.1" | ||
com-keyfactor-keyfactor-commons-cli = "2.0.0" | ||
com-keyfactor-servicemanifestbuilder = "1.0.2" | ||
com-keyfactor-x509-common-util = "4.1.4" | ||
commons-io-commons-io = "2.18.0" | ||
commons-lang-commons-lang = "2.6" | ||
jakarta-ws-rs-jakarta-ws-rs-api = "4.0.0" | ||
org-apache-commons-commons-lang3 = "3.17.0" | ||
org-apache-httpcomponents-httpclient = "4.5.14" | ||
org-apache-logging-log4j-log4j-core = "2.24.2" | ||
org-apache-logging-log4j-log4j-v1-v2-api = "2.24.2" | ||
org-bouncycastle-bcpkix-jdk18on = "1.79" | ||
org-bouncycastle-bcprov-jdk18on = "1.79" | ||
org-bouncycastle-bcutil-jdk18on = "1.79" | ||
org-codehaus-mojo-exec-maven-plugin = "3.5.0" | ||
org-jboss-resteasy-resteasy-client = "6.2.11.Final" | ||
|
||
[libraries] | ||
com-googlecode-json-simple-json-simple = { module = "com.googlecode.json-simple:json-simple", version.ref = "com-googlecode-json-simple-json-simple" } | ||
com-keyfactor-keyfactor-commons-cli = { module = "com.keyfactor:keyfactor-commons-cli", version.ref = "com-keyfactor-keyfactor-commons-cli" } | ||
com-keyfactor-servicemanifestbuilder = { module = "com.keyfactor:servicemanifestbuilder", version.ref = "com-keyfactor-servicemanifestbuilder" } | ||
com-keyfactor-x509-common-util = { module = "com.keyfactor:x509-common-util", version.ref = "com-keyfactor-x509-common-util" } | ||
commons-io-commons-io = { module = "commons-io:commons-io", version.ref = "commons-io-commons-io" } | ||
commons-lang-commons-lang = { module = "commons-lang:commons-lang", version.ref = "commons-lang-commons-lang" } | ||
jakarta-ws-rs-jakarta-ws-rs-api = { module = "jakarta.ws.rs:jakarta.ws.rs-api", version.ref = "jakarta-ws-rs-jakarta-ws-rs-api" } | ||
org-apache-commons-commons-lang3 = { module = "org.apache.commons:commons-lang3", version.ref = "org-apache-commons-commons-lang3" } | ||
org-apache-httpcomponents-httpclient = { module = "org.apache.httpcomponents:httpclient", version.ref = "org-apache-httpcomponents-httpclient" } | ||
org-apache-logging-log4j-log4j-core = { module = "org.apache.logging.log4j:log4j-core", version.ref = "org-apache-logging-log4j-log4j-core" } | ||
org-apache-logging-log4j-log4j-v1-v2-api = { module = "org.apache.logging.log4j:log4j-1.2-api", version.ref = "org-apache-logging-log4j-log4j-v1-v2-api" } | ||
org-bouncycastle-bcpkix-jdk18on = { module = "org.bouncycastle:bcpkix-jdk18on", version.ref = "org-bouncycastle-bcpkix-jdk18on" } | ||
org-bouncycastle-bcprov-jdk18on = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "org-bouncycastle-bcprov-jdk18on" } | ||
org-bouncycastle-bcutil-jdk18on = { module = "org.bouncycastle:bcutil-jdk18on", version.ref = "org-bouncycastle-bcutil-jdk18on" } | ||
org-codehaus-mojo-exec-maven-plugin = { module = "org.codehaus.mojo:exec-maven-plugin", version.ref = "org-codehaus-mojo-exec-maven-plugin" } | ||
org-jboss-resteasy-resteasy-client = { module = "org.jboss.resteasy:resteasy-client", version.ref = "org-jboss-resteasy-resteasy-client" } |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.