forked from ActionIQ-OSS/spark-redshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EXE-1558] Setup build and deploy; add pushdown (#1)
- Loading branch information
Showing
35 changed files
with
2,364 additions
and
146 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ project/target | |
build/*.jar | ||
aws_variables.env | ||
derby.log | ||
.bsp/ |
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,7 +1,4 @@ | ||
-Dfile.encoding=UTF8 | ||
-Xms1024M | ||
-Xmx1024M | ||
-Xss6M | ||
-XX:MaxPermSize=512m | ||
-XX:+CMSClassUnloadingEnabled | ||
-XX:+UseConcMarkSweepGC | ||
-Xss6M |
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,18 @@ | ||
import sbt.Keys.credentials | ||
import sbt.{AutoPlugin, Credentials, Def, PluginTrigger} | ||
|
||
// Mirrors aiq - ArtifactoryCredentials | ||
object ArtifactoryCredentials extends AutoPlugin { | ||
|
||
lazy val credentialSettings: Seq[Def.Setting[_]] = Seq( | ||
// Attempts to use environment variables if available to configure Artifactory | ||
credentials ++= sys.env.get("ARTIFACTORY_ACCESS_TOKEN").toList.map { token => | ||
Credentials("Artifactory Realm", "actioniq.jfrog.io", sys.env("ARTIFACTORY_USER"), token) | ||
} | ||
) | ||
|
||
// Applying this to all builds automatically for now. trigger = allRequirements with no requirements | ||
override def trigger: PluginTrigger = allRequirements | ||
|
||
override def projectSettings: Seq[Def.Setting[_]] = credentialSettings | ||
} |
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,24 @@ | ||
import sbt.Keys.{isSnapshot, packageDoc, packageSrc, publishArtifact, publishConfiguration, publishLocalConfiguration, publishM2Configuration, publishMavenStyle, publishTo} | ||
import sbt.{Def, _} | ||
|
||
// Mirrors aiq - PublishToArtifactory | ||
object PublishToArtifactory extends AutoPlugin { | ||
|
||
lazy val baseSettings: Seq[Def.Setting[_]] = Seq( | ||
publishTo := Some("Artifactory Realm".at("https://actioniq.jfrog.io/artifactory/aiq-sbt-local")), | ||
publishMavenStyle := true, | ||
publishConfiguration := publishConfiguration.value.withOverwrite(isSnapshot.value), | ||
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(isSnapshot.value), | ||
publishM2Configuration := publishM2Configuration.value.withOverwrite(isSnapshot.value), | ||
Compile / packageSrc / publishArtifact := false, | ||
Compile / packageDoc / publishArtifact := false, | ||
) | ||
|
||
override def requires: Plugins = ArtifactoryCredentials | ||
|
||
override def trigger: PluginTrigger = noTrigger | ||
|
||
// a group of settings that are automatically added to projects. | ||
override val projectSettings: Seq[Def.Setting[_]] = baseSettings | ||
|
||
} |
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 |
---|---|---|
@@ -1,15 +1,9 @@ | ||
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0") | ||
addDependencyTreePlugin | ||
|
||
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.5") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") | ||
|
||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0") | ||
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0") | ||
|
||
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0") | ||
|
||
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0") | ||
|
||
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0") | ||
|
||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") | ||
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.11") | ||
|
||
libraryDependencies += "org.apache.maven" % "maven-artifact" % "3.3.9" |
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.