Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: gradle config that works from quickstarts #1867

Merged
merged 7 commits into from
Oct 25, 2023

Conversation

johanandren
Copy link
Member

No description provided.

@@ -13,7 +13,7 @@ By default both client and server are generated and Java or Scala is autodetecte

### Installation

Follow instructions at [Gradle plugin portal](https://plugins.gradle.org/plugin/com.lightbend.akka.grpc.gradle) to apply plugin.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any clue of how we could update https://plugins.gradle.org/plugin/com.lightbend.akka.grpc.gradle, which now has incomplete instructions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, I guess we'll have to check with @raboof if he still has access and can hand over account

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! 👋 😄

I don't see a way to edit the instructions at https://plugins.gradle.org/plugin/com.lightbend.akka.grpc.gradle from the web UI, I suspect they will get updated automatically by changing the fields under pluginBundle in gradle-plugin/build.gradle.

Of course it would still be good to transfer ownership of this package to you. Looks like this can be done by opening an issue at https://github.com/gradle/plugin-portal-requests#transferring-ownership . Can you create an account to transfer ownership to?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heyhey, I've created an account johanandren. Please trigger the transfer thanks!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @raboof !

plugins {
id 'com.lightbend.akka.grpc.gradle' version '$project.version$'
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like we define the same things twice now. What is the recommend way to add plugins? settings or buildscript (or both)?

Copy link
Member Author

@johanandren johanandren Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I tried only one of them and it didn't work, but I may be wrong. Can check tomorrow.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropping buldscript seems to work: akka/akka-grpc-quickstart-java.g8#64

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single file seems nicer though, I'll try only buildscript and no settings.gradle as well

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, once we got it working it might be worth changing plugin-tester projects so that they look the same. There I think we need the local repo as well, since we are testing with a local publish.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the builds here, slightly simpler in some sense, but had to keep the gradle.settings to include local maven in repositories searched for plugins.

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johanandren johanandren merged commit 27a5b5b into main Oct 25, 2023
12 checks passed
@johanandren johanandren deleted the wip-backport-gradle-config-from-quickstarts branch October 25, 2023 14:58
GreyPlane pushed a commit to GreyPlane/akka-grpc that referenced this pull request Oct 26, 2023
* docs: gradle config that works from quickstarts
* Simplify plugin tester gradle setup
johanandren added a commit that referenced this pull request Dec 14, 2023
* docs: gradle config that works from quickstarts
* Simplify plugin tester gradle setup
GreyPlane pushed a commit to GreyPlane/akka-grpc that referenced this pull request Feb 19, 2024
* docs: gradle config that works from quickstarts
* Simplify plugin tester gradle setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants