Skip to content

Commit bb4bd56

Browse files
authored
Merge pull request #4 from 2m/wip-dynver-2m
Dynamically determine version
2 parents 9d22edd + 0bb0a5a commit bb4bd56

File tree

9 files changed

+113
-28
lines changed

9 files changed

+113
-28
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
# sbt-paradox-apidoc
1+
# sbt-paradox-apidoc [![bintray-badge][]][bintray] [![travis-badge][]][travis]
22

3-
# Maintanance notes
3+
[bintray]: https://bintray.com/sbt/sbt-plugin-releases/sbt-paradox-apidoc
4+
[bintray-badge]: https://api.bintray.com/packages/sbt/sbt-plugin-releases/sbt-paradox-apidoc/images/download.svg
5+
[travis]: https://travis-ci.org/lightbend/sbt-paradox-apidoc
6+
[travis-badge]: https://travis-ci.org/lightbend/sbt-paradox-apidoc.svg?branch=master
7+
8+
9+
10+
## Usage
11+
12+
```scala
13+
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-apidoc" % "ba4e049c")
14+
```
415

516
## License
617

718
The license is Apache 2.0, see LICENSE.
819

9-
## Maintained by
20+
## Maintanance notes
1021

1122
**This project is NOT supported under the Lightbend subscription.**
1223

build.sbt

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
scalaVersion := "2.12.4"
22

3-
lazy val root = project
4-
.in(file("."))
5-
.settings(
6-
sbtPlugin := true,
7-
organization := "com.lightbend.paradox",
8-
name := "sbt-paradox-apidoc",
9-
addSbtPlugin(Library.sbtParadox),
10-
libraryDependencies ++= Seq(
11-
Library.fastClassPathScanner,
12-
Library.jtidy % Test,
13-
Library.scalatest % Test
14-
)
15-
)
3+
sbtPlugin := true
4+
organization := "com.lightbend.paradox"
5+
name := "sbt-paradox-apidoc"
6+
7+
addSbtPlugin(Library.sbtParadox)
8+
libraryDependencies ++= Seq(
9+
Library.fastClassPathScanner,
10+
Library.jtidy % Test,
11+
Library.scalatest % Test
12+
)
13+
14+
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
15+
homepage := Some(url("https://github.com/lightbend/sbt-paradox-apidoc"))
16+
scmInfo := Some(ScmInfo(url("https://github.com/lightbend/sbt-paradox-apidoc"), "git@github.com:lightbend/sbt-paradox-apidoc.git"))
17+
developers += Developer("contributors",
18+
"Contributors",
19+
"https://gitter.im/lightbend/paradox",
20+
url("https://github.com/lightbend/sbt-paradox-apidoc/graphs/contributors"))
21+
organizationName := "Lightbend Inc."
22+
startYear := Some(2018)
23+
24+
bintrayOrganization := Some("sbt")
25+
bintrayRepository := "sbt-plugin-releases"
26+
27+
enablePlugins(AutomateHeaderPlugin)

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.1.4
1+
sbt.version=1.1.6

project/plugins.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "3.0.0")
2+
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4")
3+
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.0.0")

src/main/scala/com/lightbend/paradox/apidoc/ApidocDirective.scala

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
/**
2-
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
1+
/*
2+
* Copyright 2018 Lightbend Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
315
*/
416

517
package com.lightbend.paradox.apidoc

src/main/scala/com/lightbend/paradox/apidoc/ApidocKeys.scala

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
/**
2-
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
1+
/*
2+
* Copyright 2018 Lightbend Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
315
*/
416

517
package com.lightbend.paradox.apidoc

src/main/scala/com/lightbend/paradox/apidoc/ApidocPlugin.scala

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
/**
2-
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
1+
/*
2+
* Copyright 2018 Lightbend Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
315
*/
416

517
package com.lightbend.paradox.apidoc

src/test/scala/com.lightbend.paradox/apidoc/ApidocPluginSpec.scala

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
/**
2-
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
1+
/*
2+
* Copyright 2018 Lightbend Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
315
*/
416

517
package com.lightbend.paradox.apidoc

src/test/scala/com.lightbend.paradox/apidoc/MarkdownBaseSpec.scala

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
/**
2-
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
1+
/*
2+
* Copyright 2018 Lightbend Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
315
*/
416

5-
617
package com.lightbend.paradox.apidoc
718

819
import com.lightbend.paradox.tree.Tree.{Forest, Location}

0 commit comments

Comments
 (0)