Skip to content

Initial Gradle convention plugins #123

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

Merged

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Mar 1, 2023

Depends on #122 - and again, this PR should contain no functional changes to the BCV plugin or library.

@aSemy aSemy changed the base branch from master to bcv-gradle-rework March 3, 2023 13:49
@qwwdfsad
Copy link
Member

I've pushed pr/122 branch -- if it works for you, this PR can point to it while we are working on #122 (so the changes are much easier to review).

Or we can just wait until #122 is merged to avoid messing with branches

@aSemy aSemy changed the base branch from bcv-gradle-rework to pr/122 March 13, 2023 22:34
@aSemy
Copy link
Contributor Author

aSemy commented Mar 13, 2023

I think it would be best to wait for #122 before reviewing this one, but it is convenient to point it at a specific branch!

@qwwdfsad qwwdfsad deleted the branch Kotlin:bcv-gradle-rework March 21, 2023 17:13
@qwwdfsad qwwdfsad closed this Mar 21, 2023
@aSemy
Copy link
Contributor Author

aSemy commented Mar 21, 2023

@qwwdfsad I think this PR was closed automatically by GitHub because the branch pr/122 was deleted. Could it be re-opened please?

@qwwdfsad qwwdfsad reopened this Mar 22, 2023
@qwwdfsad
Copy link
Member

qwwdfsad commented Mar 22, 2023

Sorry for the inconvenience, I took a shortcut and removed the pr/122 to re-instantiate it 😅

@qwwdfsad
Copy link
Member

qwwdfsad commented Apr 26, 2023

Hi, could you please elaborate on whether you have any plans to push this change forward?

@aSemy aSemy marked this pull request as ready for review April 27, 2023 08:07
@aSemy
Copy link
Contributor Author

aSemy commented Apr 27, 2023

@qwwdfsad Ready for review! But could you update https://github.com/Kotlin/binary-compatibility-validator/tree/pr/122 to include the latest changes from master?

@aSemy aSemy mentioned this pull request Apr 27, 2023
@aSemy aSemy force-pushed the feat/initial_convention_plugins branch from 7496f3f to e26b0ae Compare April 27, 2023 08:49
@aSemy aSemy mentioned this pull request Apr 27, 2023
@qwwdfsad qwwdfsad changed the base branch from pr/122 to bcv-gradle-rework May 1, 2023 15:50
@qwwdfsad qwwdfsad changed the base branch from bcv-gradle-rework to pr/122 May 1, 2023 15:51
@qwwdfsad
Copy link
Member

qwwdfsad commented May 1, 2023

I've abandoned pr/122 the moment it was merged. I was assuming we are using bcv-gradle-rework branch for the upcoming work (#88 (comment)).

Not a blocker anyway, will start reviewing, but could you please change the base branch and rebase on it?

Copy link
Member

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

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

So far, so good, thanks!

I have a few questions and a target branch comment, no comments about version catalog and I believe it's good to go

* Copyright 2016-2023 JetBrains s.r.o.
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
*/
package kotlinx.validation.build.conventions
Copy link
Member

Choose a reason for hiding this comment

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

Is it correct that these conventions will be published along with BCV and will be applicable to target's projects manually?

Could you please add an integration test for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These convention plugins are only available in BCV's own build scripts for building BCV, and they are not published anywhere. They won't be visible for users at all.

These are pre-compiled script plugins which Gradle will auto-magically compile into a plugin with a plugin ID (based on the file path). The plugins are compiled into a JAR, buildSrc/build/libs/buildSrc.jar, which (because they're in buildSrc) is automatically added to the buildscript classpath.

@aSemy
Copy link
Contributor Author

aSemy commented May 1, 2023

I've abandoned pr/122 the moment it was merged. I was assuming we are using bcv-gradle-rework branch for the upcoming work (#88 (comment)).

Not a blocker anyway, will start reviewing, but could you please change the base branch and rebase on it?

Oops, I got the branches confused. I'll rebase. I've rebased.

aSemy added 5 commits May 1, 2023 18:53
- bump Gradle Plugin Publish Plugin version
- build script updates & improvements
- use Java Toolchains to set Java version
- use jvm-test-fixtures plugin for functionalTest sources
- create convention plugins for common and java-specific config
- add Gradle version catalog
- simplify some build config
@aSemy aSemy force-pushed the feat/initial_convention_plugins branch from e26b0ae to 84857fb Compare May 1, 2023 17:06
@aSemy aSemy changed the base branch from pr/122 to bcv-gradle-rework May 1, 2023 17:06
@qwwdfsad qwwdfsad self-requested a review May 2, 2023 15:38
Copy link
Member

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

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

Thanks!

@qwwdfsad qwwdfsad merged commit bef42e0 into Kotlin:bcv-gradle-rework May 2, 2023
qwwdfsad pushed a commit that referenced this pull request Sep 18, 2023
- create convention plugins for common and java-specific config
- add Gradle version catalog
- simplify some build config
qwwdfsad added a commit that referenced this pull request Jan 12, 2024
* Annotate file paths with `@Language("file-reference")` (#126)
* Update to Gradle 8 (#122)
* bump Gradle Plugin Publish Plugin version
* build script updates & improvements
* use Java Toolchains to set the Java version
* use jvm-test-fixtures plugin for functionalTest sources
* update build config, remove redundant Maven publication

* Initial Gradle convention plugins (#123)
* Apply BCV, commit API dump (#131)
* The ABI shape will be reduced in the future, this is a technical change
* java-diff-utils
* Update Gradle to 8.5

---------

Co-authored-by: aSemy <[email protected]>
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.

2 participants