You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by GitBox <gi...@apache.org> on 2023/01/05 10:25:38 UTC

[GitHub] [incubator-pekko] mdedetrich opened a new pull request, #83: Add sbt UsefulTask for publishLocal

mdedetrich opened a new pull request, #83:
URL: https://github.com/apache/incubator-pekko/pull/83

   This is particularly helpful if you want to try local pekko changes in another project


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] pjfanning commented on a diff in pull request #83: Add sbt UsefulTask for publishLocal

Posted by GitBox <gi...@apache.org>.
pjfanning commented on code in PR #83:
URL: https://github.com/apache/incubator-pekko/pull/83#discussion_r1062332134


##########
project/PekkoBuild.scala:
##########
@@ -280,6 +280,7 @@ object PekkoBuild {
         UsefulTask("", "compile", "Compile the current project"),
         UsefulTask("", "test", "Run all the tests "),
         UsefulTask("", "testOnly *.AnySpec", "Only run a selected test"),
+        UsefulTask("", "publishLocal", "Publish current snapshot version to local ~/.ivy2 repo"),

Review Comment:
   sort of 2 questions?
   1. does publishLocal only write to local Ivy repo?
   2. regardless of whether publishLocal only published to to local Ivy repo, other sbt builds can still use the local jars (given that you set the right version to use in the upstream builds)?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] mdedetrich merged pull request #83: Add sbt UsefulTask for publishLocal

Posted by GitBox <gi...@apache.org>.
mdedetrich merged PR #83:
URL: https://github.com/apache/incubator-pekko/pull/83


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] pjfanning commented on a diff in pull request #83: Add sbt UsefulTask for publishLocal

Posted by GitBox <gi...@apache.org>.
pjfanning commented on code in PR #83:
URL: https://github.com/apache/incubator-pekko/pull/83#discussion_r1062325523


##########
project/PekkoBuild.scala:
##########
@@ -280,6 +280,7 @@ object PekkoBuild {
         UsefulTask("", "compile", "Compile the current project"),
         UsefulTask("", "test", "Run all the tests "),
         UsefulTask("", "testOnly *.AnySpec", "Only run a selected test"),
+        UsefulTask("", "publishLocal", "Publish current snapshot version to local ~/.ivy2 repo"),

Review Comment:
   how about Coursier (latest sbt defaults to this) and maven?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] mdedetrich commented on a diff in pull request #83: Add sbt UsefulTask for publishLocal

Posted by GitBox <gi...@apache.org>.
mdedetrich commented on code in PR #83:
URL: https://github.com/apache/incubator-pekko/pull/83#discussion_r1062335117


##########
project/PekkoBuild.scala:
##########
@@ -280,6 +280,7 @@ object PekkoBuild {
         UsefulTask("", "compile", "Compile the current project"),
         UsefulTask("", "test", "Run all the tests "),
         UsefulTask("", "testOnly *.AnySpec", "Only run a selected test"),
+        UsefulTask("", "publishLocal", "Publish current snapshot version to local ~/.ivy2 repo"),

Review Comment:
   > does publishLocal only write to local Ivy repo?
   
   Not sure it can only write to `~/.ivy2/local` but it is intentional for it to do so because sbt/scala uses ivy style dependency resolution for Scala artifacts.
   
   > regardless of whether publishLocal only published to to local Ivy repo, other sbt builds can still use the local jars (given that you set the right version to use in the upstream builds)?
   
   Yes, there is a default resolver called `Resolver.defaultLocal` which allows you to easily resolve projects published locally in `~/.ivy2/local` folder. I think this may already be included by default in SBT, if its not you can just do
   
   ```
   resolvers += Resolver.defaultLocal
   ```
   
   I do this workflow all the time, i.e. testing if current changes being applied to akka work in some other project. 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] mdedetrich commented on a diff in pull request #83: Add sbt UsefulTask for publishLocal

Posted by GitBox <gi...@apache.org>.
mdedetrich commented on code in PR #83:
URL: https://github.com/apache/incubator-pekko/pull/83#discussion_r1062326236


##########
project/PekkoBuild.scala:
##########
@@ -280,6 +280,7 @@ object PekkoBuild {
         UsefulTask("", "compile", "Compile the current project"),
         UsefulTask("", "test", "Run all the tests "),
         UsefulTask("", "testOnly *.AnySpec", "Only run a selected test"),
+        UsefulTask("", "publishLocal", "Publish current snapshot version to local ~/.ivy2 repo"),

Review Comment:
   Are you asking if the latest sbt picks up this local repo?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] mdedetrich commented on a diff in pull request #83: Add sbt UsefulTask for publishLocal

Posted by GitBox <gi...@apache.org>.
mdedetrich commented on code in PR #83:
URL: https://github.com/apache/incubator-pekko/pull/83#discussion_r1062335117


##########
project/PekkoBuild.scala:
##########
@@ -280,6 +280,7 @@ object PekkoBuild {
         UsefulTask("", "compile", "Compile the current project"),
         UsefulTask("", "test", "Run all the tests "),
         UsefulTask("", "testOnly *.AnySpec", "Only run a selected test"),
+        UsefulTask("", "publishLocal", "Publish current snapshot version to local ~/.ivy2 repo"),

Review Comment:
   > does publishLocal only write to local Ivy repo?
   
   Not sure it can only write to `~/.ivy2/local` but it is intentional for it to do so because sbt/scala uses ivy style dependency resolution.
   
   > regardless of whether publishLocal only published to to local Ivy repo, other sbt builds can still use the local jars (given that you set the right version to use in the upstream builds)?
   
   Yes, there is a default resolver called `Resolver.defaultLocal` which allows you to easily resolve projects published locally in `~/.ivy2/local` folder. I think this may already be included by default in SBT, if its not you can just do
   
   ```
   resolvers += Resolver.defaultLocal
   ```
   
   I do this workflow all the time, i.e. testing if current changes being applied to akka work in some other project. 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] mdedetrich commented on a diff in pull request #83: Add sbt UsefulTask for publishLocal

Posted by GitBox <gi...@apache.org>.
mdedetrich commented on code in PR #83:
URL: https://github.com/apache/incubator-pekko/pull/83#discussion_r1062335117


##########
project/PekkoBuild.scala:
##########
@@ -280,6 +280,7 @@ object PekkoBuild {
         UsefulTask("", "compile", "Compile the current project"),
         UsefulTask("", "test", "Run all the tests "),
         UsefulTask("", "testOnly *.AnySpec", "Only run a selected test"),
+        UsefulTask("", "publishLocal", "Publish current snapshot version to local ~/.ivy2 repo"),

Review Comment:
   > does publishLocal only write to local Ivy repo?
   
   Yes and this is intentional
   
   > regardless of whether publishLocal only published to to local Ivy repo, other sbt builds can still use the local jars (given that you set the right version to use in the upstream builds)?
   
   Yes, there is a default resolver called `Resolver.defaultLocal` which allows you to easily resolve projects published locally in `~/.ivy2/local` folder. I think this may already be included by default in SBT, if its not you can just do
   
   ```
   resolvers += Resolver.defaultLocal
   ```
   
   I do this workflow all the time, i.e. testing if current changes being applied to akka work in some other project. 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org