-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish to gh and removed bintray plugin
- Loading branch information
Showing
2 changed files
with
36 additions
and
50 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 |
---|---|---|
|
@@ -25,6 +25,12 @@ credentials += | |
|
||
licenses += ("Apache-2.0", url("https://opensource.org/licenses/Apache-2.0")) | ||
|
||
githubOwner := "openlawteam" | ||
githubRepository := "openlaw-core" | ||
githubTokenSource := TokenSource.GitConfig("github.token") || TokenSource | ||
.Environment("GITHUB_TOKEN") || TokenSource | ||
.Environment("TOKEN") | ||
|
||
/* | ||
The Scala and SBT versions must be matched to the version of scala-builder used | ||
as the base image of the container. We try to standardize across projects and | ||
|
@@ -50,7 +56,6 @@ lazy val repositories = Seq( | |
Resolver.jcenterRepo, | ||
Resolver.githubPackages("openlawteam"), | ||
"central" at "https://repo1.maven.org/maven2/", | ||
"scalaz-bintray" at "https://dl.bintray.com/scalaz/releases", | ||
"maven central" at "https://mvnrepository.com/repos/central", | ||
Resolver.mavenLocal | ||
) | ||
|
@@ -69,55 +74,32 @@ lazy val commonSettings = Seq( | |
javacOptions ++= Seq("-source", "1.8", "-target", "1.8") | ||
) | ||
|
||
lazy val publishSettings = Seq( | ||
publishArtifact in (Test, packageBin) := true, | ||
homepage := Some(url(s"https://github.com/$username/$repo")), | ||
licenses += ("Apache-2.0", url("https://opensource.org/licenses/Apache-2.0")), | ||
scmInfo := Some( | ||
ScmInfo( | ||
url(s"https://github.com/$username/$repo"), | ||
s"[email protected]:$username/$repo.git" | ||
) | ||
), | ||
releaseCrossBuild := true, | ||
developers := List( | ||
Developer( | ||
id = "adridadou", | ||
name = "David Roon", | ||
email = "[email protected]", | ||
url = new URL(s"http://github.com/adridadou") | ||
), | ||
Developer( | ||
id = "outkaj", | ||
name = "Jacqueline Outka", | ||
email = "[email protected]", | ||
url = new URL(s"http://github.com/outkaj") | ||
), | ||
Developer( | ||
id = "openlawbot", | ||
name = "Pizza Dog Bot", | ||
email = "[email protected]", | ||
url = new URL(s"http://github.com/openlawbot") | ||
) | ||
) | ||
) | ||
publishTo := Some( | ||
"GitHub Packages OpenLaw Core" at "https://maven.pkg.github.com/openlawteam/openlaw-core" | ||
) | ||
|
||
lazy val releaseSettings = releaseProcess := Seq[ReleaseStep]( | ||
checkSnapshotDependencies, // : ReleaseStep | ||
checkSnapshotDependencies // : ReleaseStep | ||
//inquireVersions, // : ReleaseStep | ||
//setReleaseVersion, // : ReleaseStep | ||
//commitReleaseVersion, // : ReleaseStep, performs the initial git checks | ||
//tagRelease, // : ReleaseStep | ||
//releaseStepCommandAndRemaining("publish"), | ||
publishArtifacts // : ReleaseStep, | ||
//publishArtifacts // : ReleaseStep, | ||
//setNextVersion, // : ReleaseStep | ||
//commitNextVersion, // : ReleaseStep | ||
//pushChanges // : ReleaseStep, also checks that an upstream branch is properly configured | ||
) | ||
|
||
publishArtifact in (Test, packageBin) := true | ||
releaseCrossBuild := true | ||
publishMavenStyle := true | ||
publishTo := Some( | ||
"GitHub Packages OpenLaw Core" at "https://maven.pkg.github.com/openlawteam/openlaw-core" | ||
) | ||
|
||
publishConfiguration in ThisBuild := publishConfiguration.value.withOverwrite( | ||
true | ||
) | ||
publishLocalConfiguration in ThisBuild := publishLocalConfiguration.value | ||
.withOverwrite(true) | ||
|
||
val rules = Seq( | ||
Wart.AnyVal, | ||
Wart.ArrayEquals, | ||
|
@@ -239,8 +221,13 @@ lazy val openlawCore = crossProject(JSPlatform, JVMPlatform) | |
) | ||
.settings(parallelExecution in Test := false) | ||
.settings(commonSettings: _*) | ||
.settings(publishSettings: _*) | ||
.settings( | ||
publishTo := Some( | ||
"GitHub Packages OpenLaw Core" at "https://maven.pkg.github.com/openlawteam/openlaw-core" | ||
) | ||
) | ||
.settings(releaseSettings: _*) | ||
.settings(publishMavenStyle := true) | ||
.enablePlugins(WartRemover) | ||
|
||
lazy val version = git.gitDescribedVersion | ||
|
@@ -253,6 +240,10 @@ addCommandAlias( | |
"releaseCore", | ||
";project openlawCore ;release release-version ${version} next-version ${version-SNAPSHOT} with-defaults" | ||
) | ||
addCommandAlias( | ||
"publishCore", | ||
";project openlawCore ;publish" | ||
) | ||
addCommandAlias( | ||
"releaseCoreJS", | ||
";project openlawCoreJS ;release release-version ${version} next-version ${version-SNAPSHOT} with-defaults" | ||
|
@@ -268,5 +259,3 @@ val root = (project in file(".")) | |
.dependsOn(openlawCoreJvm, openlawCoreJs) | ||
.aggregate(openlawCoreJvm, openlawCoreJs) | ||
.enablePlugins(GitVersioning) | ||
|
||
publishMavenStyle := 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