Skip to content

Commit 1b7c449

Browse files
committed
Merge remote-tracking branch 'origin/2.10.x'
Conflicts: .gitignore hand-written.md release-notes.html src/main/scala/MakeReleaseNotes.scala
2 parents a2f9ad3 + 62c53be commit 1b7c449

File tree

5 files changed

+42
-29
lines changed

5 files changed

+42
-29
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
target
1+
target
2+
release-notes*.md

Diff for: build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "scala-release-note-generator"
22

3-
scalaVersion := "2.10.0-RC3"
3+
scalaVersion := "2.10.2"
44

55
libraryDependencies += "org.pegdown" % "pegdown" % "1.2.0"
66

@@ -9,4 +9,4 @@ libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.1"
99
{
1010
require(sys.props("file.encoding") == "UTF-8", "Please rerun with -Dfile.encoding=UTF-8")
1111
Nil
12-
}
12+
}

Diff for: hand-written.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
We are pleased to announce the next milestone release of Scala 2.11.0!
22

33
This is a pre-release software. You can see our plans for upcoming Scala releases
4-
on our [Roadmap](https://issues.scala-lang.org/browse/SI#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel). For production use, we recommend the latest stable release, 2.10.1.
4+
on our [Roadmap](https://issues.scala-lang.org/browse/SI#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel). For production use, we recommend the latest stable release, 2.10.3.
5+
6+
<!-- Substitute both version numbers here! -->
7+
The release is available for download from [scala-lang.org](http://scala-lang.org/download/2.10.3.html) or from [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.scala-lang%22%20AND%20v%3A%222.10.3%22).
58

69
The Scala team and contributors [fixed 108 issues](https://issues.scala-lang.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+SI+AND+%28fixVersion+%3D+%22Scala+2.11.0-M1%22+OR+fixVersion+%3D+%22Scala+2.11.0-M2%22+OR+fixVersion+%3D+%22Scala+2.11.0-M3%22%29+AND+status+%3D+closed+ORDER+BY+priority+DESC), in addition to [those fixed in the upcoming 2.10.2](https://issues.scala-lang.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+SI+AND+%28fixVersion+%3D+%22Scala+2.10.2-RC1%22%29+AND+status+%3D+closed+ORDER+BY+priority+DESC), which are also included in this release.
710

@@ -19,9 +22,9 @@ This will be fixed in the next milestone.
1922
<!--break-->
2023

2124
### Scala IDE for Eclipse
22-
The Scala IDE with Scala 2.11.0-M3 built right in is available through one of the following update-sites:
25+
The Scala IDE with this release built right in is available through one of the following update-sites:
2326

24-
* [for Eclipse 3.7 (Indigo)](http://download.scala-ide.org/ecosystem/e37/scala211/dev/site/)
27+
* [for Eclipse 4.2/4.3 (Juno/Kepler)](http://download.scala-ide.org/sdk/e38/scala211/dev/site/)
2528

2629
Have a look at the [getting started guide](http://scala-ide.org/docs/user/gettingstarted.html) for more info.
2730

Diff for: release-notes.html

+16-12
Large diffs are not rendered by default.

Diff for: src/main/scala/MakeReleaseNotes.scala

+16-11
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
import java.io.BufferedReader
44
import scala.io.Source
55
object MakeReleaseNotes {
6-
7-
def apply(scalaDir: java.io.File, previousTag: String, currentTag: String)(implicit targetLanguage: TargetLanguage = Html): Unit = {
6+
def apply(scalaDir: String, previousTag: String, currentTag: String) {
7+
Seq(Html, MarkDown).foreach(fmt => apply(new java.io.File(scalaDir), previousTag, currentTag, fmt))
8+
}
9+
def apply(scalaDir: java.io.File, previousTag: String, currentTag: String, targetLanguage: TargetLanguage = Html): Unit = {
810
val out = targetLanguage match {
911
case Html => new java.io.File("release-notes.html")
1012
case MarkDown => new java.io.File(s"release-notes-${currentTag}.md")
1113
}
12-
13-
IO.write(out, makeReleaseNotes(scalaDir, previousTag, currentTag))
14+
IO.write(out, makeReleaseNotes(scalaDir, previousTag, currentTag)(targetLanguage))
15+
println("Generated: " + out)
1416
}
1517

1618
def parseHandWrittenNotes(file: java.io.File = new java.io.File("hand-written.md")): String = {
@@ -55,14 +57,17 @@ object MakeReleaseNotes {
5557
<head>
5658
<meta charset="UTF-8">
5759
<title>${currentTag} - Release notes</title>
60+
<link rel="stylesheet" type="text/css" href="http://www.scala-lang.org/resources/css/bootstrap.css"/>
5861
</head>
5962
<body>
60-
<h3>Scala ${currentTag drop 1} is now available!</h3>
61-
${parseHandWrittenNotes()}
62-
<br/><br/>
63-
${renderCommitterList}
64-
${renderFixedIssues}
65-
${renderCommitList}
63+
<div class="container"/>
64+
<h3>Scala ${currentTag drop 1} is now available!</h3>
65+
${parseHandWrittenNotes()}
66+
<br/><br/>
67+
${renderCommitterList}
68+
${renderFixedIssues}
69+
${renderCommitList}
70+
</div>
6671
</body>
6772
</html>"""
6873
case MarkDown => s"""---
@@ -79,4 +84,4 @@ ${renderCommitList}
7984
}
8085

8186
}
82-
}
87+
}

0 commit comments

Comments
 (0)