-
Notifications
You must be signed in to change notification settings - Fork 5
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 #7 from ennru/configurable-version
Introduce `projectInfoVersion` key to control propagated version
- Loading branch information
Showing
11 changed files
with
121 additions
and
3 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
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,22 @@ | ||
import sbt.Keys.{homepage, scmInfo} | ||
|
||
enablePlugins(ParadoxPlugin) | ||
paradoxTheme := None | ||
|
||
version in ThisBuild := "0.1.2.3" | ||
projectInfoVersion := "snapshot" | ||
|
||
val commonSettings = Seq( | ||
organization := "com.lightbend", | ||
licenses := Seq("Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0")), | ||
homepage := Some(url("https://github.com/lightbend/sbt-paradox-project-info")), | ||
scmInfo := Some( | ||
ScmInfo(url("https://github.com/lightbend/sbt-paradox-project-info"), | ||
"[email protected]:lightbend/sbt-paradox-project-info.git")), | ||
) | ||
|
||
lazy val core = Project(id = "coreId", base = file("core")) | ||
.settings(commonSettings) | ||
.settings( | ||
crossScalaVersions := Seq("2.12.7", "2.11.12"), | ||
) |
28 changes: 28 additions & 0 deletions
28
src/sbt-test/project-info/explicit-version/expected/index.html
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,28 @@ | ||
<p>The project information:</p> | ||
<table class="project-info"> | ||
<tr><th colspan=2>Project Info: The core project</th></tr> | ||
<tr><th>Artifact</th><td><div>com.lightbend</div> | ||
<div>coreId</div> | ||
<div>0.1.2.3</div> | ||
<div><a href="snapshots.html">Snapshots are available</a></div> | ||
</td></tr> | ||
<tr><th>JDK versions</th><td><div>OpenJDK 8</div></td></tr> | ||
<tr><th>Scala versions</th><td>2.12.7, 2.11.12</td></tr> | ||
<tr><th>JPMS module name</th><td>alpakka.core</td></tr> | ||
<tr><th>License</th><td><div><a href="http://opensource.org/licenses/Apache-2.0" target="_blank" rel="noopener noreferrer">Apache-2.0</a></div> | ||
</td></tr> | ||
<tr><th>Readiness level</th><td><div class='readiness-level'><a href="https://developer.lightbend.com/docs/reactive-platform/2.0/support-terminology/index.html#supported" target="_blank" rel="noopener noreferrer">Supported</a>, <a href="https://www.lightbend.com/subscription" target="_blank">Lightbend Subscription</a> provides support</div> | ||
<div>Since 0.22, 2018-11-22</div> | ||
</td></tr> | ||
<tr><th>Home page</th><td><a href="https://github.com/lightbend/sbt-paradox-project-info">https://github.com/lightbend/sbt-paradox-project-info</a></td></tr> | ||
<tr><th>API documentation</th><td> | ||
<div><a href="https://developer.lightbend.com/docs/api/alpakka/snapshot/akka/stream/alpakka/index.html" target="_blank" rel="noopener noreferrer">Scaladoc</a></div> | ||
</td></tr> | ||
<tr><th>Forums</th><td> | ||
<div><a href="https://discuss.lightbend.com/c/akka/" target="_blank" rel="noopener noreferrer">Lightbend Discuss</a></div> | ||
<div><a href="https://gitter.im/akka/alpakka-kafka" target="_blank" rel="noopener noreferrer">akka/alpakka-kafka Gitter channel</a></div> | ||
</td></tr> | ||
<tr><th>Release notes</th><td><a href="https://github.com/lightbend/sbt-paradox-project-info/releases" target="_blank" rel="noopener noreferrer">Github releases</a></td></tr> | ||
<tr><th>Issues</th><td><a href="https://github.com/lightbend/sbt-paradox-project-info/issues" target="_blank" rel="noopener noreferrer">Github issues</a></td></tr> | ||
<tr><th>Sources</th><td><a href="https://github.com/lightbend/sbt-paradox-project-info" target="_blank" rel="noopener noreferrer">https://github.com/lightbend/sbt-paradox-project-info</a></td></tr> | ||
</table> |
1 change: 1 addition & 0 deletions
1
src/sbt-test/project-info/explicit-version/project/build.properties
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 @@ | ||
sbt.version=1.2.6 |
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 @@ | ||
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-project-info" % sys.props("project.version")) |
52 changes: 52 additions & 0 deletions
52
src/sbt-test/project-info/explicit-version/project/project-info.conf
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,52 @@ | ||
project-info { | ||
version: "current" | ||
shared-info { | ||
jdk-versions: ["OpenJDK 8"] | ||
issues: { | ||
url: "https://github.com/lightbend/sbt-paradox-project-info/issues" | ||
text: "Github issues" | ||
} | ||
release-notes: { | ||
url: "https://github.com/lightbend/sbt-paradox-project-info/releases" | ||
text: "Github releases" | ||
} | ||
} | ||
coreId: ${project-info.shared-info} { | ||
title: "The core project" | ||
jpms-name: "alpakka.core" | ||
snapshots: { | ||
text: "Snapshots are available" | ||
url: "snapshots.html" | ||
new-tab: false | ||
} | ||
levels: [ | ||
{ | ||
readiness: Supported | ||
since: "2018-11-22" | ||
since-version: "0.22" | ||
} | ||
{ | ||
readiness: Incubating | ||
since: "2018-08-22" | ||
since-version: "0.16" | ||
note: "Community rocks this module" | ||
} | ||
] | ||
api-docs: [ | ||
{ | ||
text: "Scaladoc" | ||
url: "https://developer.lightbend.com/docs/api/alpakka/"${project-info.version}"/akka/stream/alpakka/index.html" | ||
} | ||
] | ||
forums: [ | ||
{ | ||
text: "Lightbend Discuss" | ||
url: "https://discuss.lightbend.com/c/akka/" | ||
} | ||
{ | ||
text: "akka/alpakka-kafka Gitter channel" | ||
url: "https://gitter.im/akka/alpakka-kafka" | ||
} | ||
] | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/sbt-test/project-info/explicit-version/src/main/paradox/_template/page.st
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 @@ | ||
$page.content$ |
3 changes: 3 additions & 0 deletions
3
src/sbt-test/project-info/explicit-version/src/main/paradox/index.md
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,3 @@ | ||
The project information: | ||
|
||
@@project-info { projectId="coreId" } |
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,3 @@ | ||
> paradox | ||
|
||
$ must-mirror target/paradox/site/main/index.html expected/index.html |