-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/27/native exe #32
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
96f1842
Refactoring delphi cli sttp dependency for native image generation
3972bd4
Refactored retrieve command to sttp
1de2c18
Fixing encoded url issue for retrieve command
b252d4e
Refactoring search command to sttp
0724269
Implementing codacy suggestions
cc33060
Fixing codacy issue
7d8068a
Renaming the project to delphi
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
scalaVersion := "2.12.4" | ||
|
||
name := "delphi" | ||
name := "delphi-cli" | ||
version := "1.0.0-SNAPSHOT" | ||
maintainer := "Ben Hermann <[email protected]>" | ||
|
||
|
@@ -28,6 +28,13 @@ libraryDependencies += "de.vandermeer" % "asciitable" % "0.3.2" | |
libraryDependencies += "com.lihaoyi" %% "fansi" % "0.2.5" | ||
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value | ||
libraryDependencies += "au.com.bytecode" % "opencsv" % "2.4" | ||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.4" % "test" | ||
|
||
libraryDependencies ++= Seq( | ||
"com.softwaremill.sttp" %% "core" % "1.5.4", | ||
"com.softwaremill.sttp" %% "spray-json" % "1.5.4" | ||
) | ||
|
||
|
||
debianPackageDependencies := Seq("java8-runtime-headless") | ||
|
||
|
@@ -38,11 +45,23 @@ lazy val cli = (project in file(".")). | |
enablePlugins(BuildInfoPlugin). | ||
enablePlugins(DebianPlugin). | ||
enablePlugins(WindowsPlugin). | ||
|
||
enablePlugins(GraalVMNativeImagePlugin). | ||
settings( | ||
graalVMNativeImageOptions ++= Seq( | ||
"--enable-https", | ||
"--enable-http", | ||
"--enable-all-security-services", | ||
"--allow-incomplete-classpath", | ||
"--enable-url-protocols=http,https" | ||
) | ||
). | ||
enablePlugins(JDKPackagerPlugin). | ||
settings( | ||
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion), | ||
buildInfoPackage := "de.upb.cs.swt.delphi.cli" | ||
buildInfoPackage := "de.upb.cs.swt.delphi.cli", | ||
) | ||
scalastyleConfig := baseDirectory.value / "project" / "scalastyle-config.xml" | ||
|
||
trapExit := false | ||
fork := true | ||
connectInput := 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 |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version = 1.1.1 | ||
sbt.version = 1.2.8 |
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intend to rename this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The executable generated will take this name. So I have renamed it. I can revert if it is a issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's why i actually renamed it. :)
This way the users can enter
delphi
and notdelphi-cli
.I think this ways its a bit stronger. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok then revert it to
delphi
. In documentationdelphi-cli
is used I renamed because of that https://github.com/delphi-hub/delphi-cli.