-
Notifications
You must be signed in to change notification settings - Fork 31
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 #82 from arktekk/sbt/1.9
Support both old and new plugin layouts
- Loading branch information
Showing
11 changed files
with
129 additions
and
35 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
13 changes: 13 additions & 0 deletions
13
aether-deploy/src/sbt-test/deploy/sbt-plugin-legacy/build.sbt
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,13 @@ | ||
ThisBuild / version := "0.1" | ||
|
||
name := "sbt-plugin-legacy" | ||
|
||
organization := "legacy" | ||
|
||
enablePlugins(SbtPlugin) | ||
|
||
publishTo := Some("foo" at (file(".") / "target" / "repo").toURI.toURL.toString) | ||
|
||
overridePublishSettings | ||
|
||
aether.AetherKeys.aetherLegacyPluginStyle := true |
7 changes: 7 additions & 0 deletions
7
aether-deploy/src/sbt-test/deploy/sbt-plugin-legacy/project/plugins.sbt
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,7 @@ | ||
val pluginVersion = scala.util.Properties.propOrNone("plugin.version").getOrElse( | ||
throw new RuntimeException(""" | ||
|The system property 'plugin.version' is not defined. | ||
|Specify this property using the scriptedLaunchOpts -D. | ||
""".stripMargin)) | ||
|
||
addSbtPlugin("no.arktekk.sbt" % "aether-deploy" % pluginVersion) |
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,13 @@ | ||
# Deploy to file url | ||
> publish | ||
$ exists target/repo/legacy | ||
$ exists target/repo/legacy/sbt-plugin-legacy_2.12_1.0/maven-metadata.xml | ||
$ exists target/repo/legacy/sbt-plugin-legacy_2.12_1.0/0.1/ | ||
$ exists target/repo/legacy/sbt-plugin-legacy_2.12_1.0/0.1/sbt-plugin-legacy-0.1.jar | ||
$ exists target/repo/legacy/sbt-plugin-legacy_2.12_1.0/0.1/sbt-plugin-legacy-0.1.pom | ||
$ exists target/repo/legacy/sbt-plugin-legacy_2.12_1.0/0.1/sbt-plugin-legacy-0.1-sources.jar | ||
$ exists target/repo/legacy/sbt-plugin-legacy_2.12_1.0/0.1/sbt-plugin-legacy-0.1-javadoc.jar | ||
$ absent target/repo/sbt-plugin/sbt-plugin_2.12_1.0/0.1/sbt-plugin_2.12_1.0-0.1.jar | ||
$ absent target/repo/sbt-plugin/sbt-plugin_2.12_1.0/0.1/sbt-plugin_2.12_1.0-0.1.pom | ||
$ absent target/repo/sbt-plugin/sbt-plugin_2.12_1.0/0.1/sbt-plugin_2.12_1.0-0.1-sources.jar | ||
$ absent target/repo/sbt-plugin/sbt-plugin_2.12_1.0/0.1/sbt-plugin_2.12_1.0-0.1-javadoc.jar |
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
ThisBuild / version := "0.1" | ||
ThisBuild / version := "0.1" | ||
|
||
name := "sbt-plugin" | ||
|
||
organization := "sbt-plugin" | ||
|
||
enablePlugins(SbtPlugin) | ||
|
||
publishTo := Some("foo" at (file(".") / "target" / "repo").toURI.toURL.toString) | ||
publishTo := Some("foo" at (file(".") / "target" / "repo").toURI.toURL.toString) | ||
|
||
overridePublishSettings | ||
|
||
aether.AetherKeys.aetherLegacyPluginStyle := false |
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 |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.8.2 | ||
sbt.version=1.9.2 |