Skip to content

Commit 5be1443

Browse files
committed
Import a bunch of meta-information and process from Scala.js core.
1 parent 9b5adbf commit 5be1443

File tree

4 files changed

+83
-3
lines changed

4 files changed

+83
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ script:
55
- sbt ++$TRAVIS_SCALA_VERSION testSuiteJVM/test
66
- sbt ++$TRAVIS_SCALA_VERSION testSuite/test
77
- sbt ++$TRAVIS_SCALA_VERSION 'set scalaJSUseRhino in Global := false' testSuite/test
8-
- sbt ++$TRAVIS_SCALA_VERSION 'set scalaJSStage in Global := FullOptStage' testSuite/test
8+
- sbt ++$TRAVIS_SCALA_VERSION 'set scalaJSUseRhino in Global := false' 'set scalaJSStage in Global := FullOptStage' testSuite/test
9+
- sbt ++$TRAVIS_SCALA_VERSION publishLocal
910
scala:
1011
- 2.10.6
1112
- 2.11.7

CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Contributing guidelines
2+
3+
See the [contributing guidelines of Scala.js core](https://github.com/scala-js/scala-js/blob/master/CONTRIBUTING.md).
4+
The same guidelines apply to this repository.
5+
6+
## Very important notice
7+
8+
`scalajs-java-time` contains a reimplementation of part of the JDK in Scala.js itself.
9+
10+
***To contribute to this code, it is strictly forbidden to even look at the
11+
source code of the Oracle JDK or OpenJDK!***
12+
13+
This is for license considerations: these JDKs are under a GPL-based license,
14+
which is not compatible with our BSD 3-clause license.
15+
16+
The only existing JDK source code that we can look at is the dead Apache
17+
Harmony project.

LICENSE.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2015-2016 EPFL
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without modification,
6+
are permitted provided that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright notice,
9+
this list of conditions and the following disclaimer.
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
* Neither the name of the EPFL nor the names of its contributors
14+
may be used to endorse or promote products derived from this software
15+
without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

build.sbt

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,50 @@ val commonSettings: Seq[Setting[_]] = Seq(
66
organization := "org.scala-js",
77
scalaVersion := "2.11.7",
88
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"),
9+
910
homepage := Some(url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://scala-js.org/%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E)),
10-
licenses += ("MIT", url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://opensource.org/licenses/mit-license.php%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E))
11+
licenses += ("BSD New",
12+
url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttps://github.com/scala-js/scala-js-java-time/blob/master/LICENSE%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E)),
13+
scmInfo := Some(ScmInfo(
14+
url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttps://github.com/scala-js/scala-js-java-time%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E),
15+
"scm:git:[email protected]:scala-js/scala-js-java-time.git",
16+
Some("scm:git:[email protected]:scala-js/scala-js-java-time.git")))
1117
)
1218

1319
lazy val root: Project = project.in(file(".")).
1420
enablePlugins(ScalaJSPlugin).
1521
settings(commonSettings).
1622
settings(
17-
name := "scalajs-java-time"
23+
name := "scalajs-java-time",
24+
25+
publishMavenStyle := true,
26+
publishTo := {
27+
val nexus = "https://oss.sonatype.org/"
28+
if (isSnapshot.value)
29+
Some("snapshots" at nexus + "content/repositories/snapshots")
30+
else
31+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
32+
},
33+
pomExtra := (
34+
<developers>
35+
<developer>
36+
<id>sjrd</id>
37+
<name>Sébastien Doeraene</name>
38+
<url>https://github.com/sjrd/</url>
39+
</developer>
40+
<developer>
41+
<id>gzm0</id>
42+
<name>Tobias Schlatter</name>
43+
<url>https://github.com/gzm0/</url>
44+
</developer>
45+
<developer>
46+
<id>nicolasstucki</id>
47+
<name>Nicolas Stucki</name>
48+
<url>https://github.com/nicolasstucki/</url>
49+
</developer>
50+
</developers>
51+
),
52+
pomIncludeRepository := { _ => false }
1853
)
1954

2055
lazy val testSuite = CrossProject(

0 commit comments

Comments
 (0)