Skip to content

Conversation

@dmdashenkov
Copy link
Contributor

@dmdashenkov dmdashenkov commented May 28, 2020

In this PR we migrate all Gradle scripts to Kotlin.

We also start checking that the current version of the core library is not yet published to the Maven repository. As a rule, we only need to check one module per Git repository.

@dmdashenkov dmdashenkov self-assigned this May 28, 2020
@codecov
Copy link

codecov bot commented May 29, 2020

Codecov Report

Merging #1278 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1278      +/-   ##
============================================
- Coverage     91.11%   91.11%   -0.01%     
- Complexity     4696     4697       +1     
============================================
  Files           605      605              
  Lines         14921    14920       -1     
  Branches        852      852              
============================================
- Hits          13596    13595       -1     
  Misses         1058     1058              
  Partials        267      267              

@dmdashenkov dmdashenkov marked this pull request as ready for review May 30, 2020 09:36
@dmdashenkov dmdashenkov requested a review from armiol May 30, 2020 09:36
@dmdashenkov
Copy link
Contributor Author

@armiol, PTAL.

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@dmdashenkov LGTM. Please see my comments though.

build.gradle.kts Outdated

idea {
module {
generatedSourceDirs.add(file(generatedJavaDir))
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume they don't have addAll(), don't they?

* A task which verifies that the current version of the library has not been published to the given
* Maven repository yet.
*/
open class CheckVersionIncrement : AbstractTask() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have to carry this with each of the repositories, or we can copy it over from config and not have it in the GitHub repo itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have to copy it because CI needs it as well. As a rule, we don't do pull on CI since config used in a repository may be older (intentionally) or use a non-master branch.

*/

project.extra.apply {
this["spineBaseVersion"] = "1.5.12"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to be pretty hard to parse from the auto-updating script.

Is there anything we could do to make it more object-oriented, maybe? Or less String-dependent?

@dmdashenkov dmdashenkov requested a review from armiol May 31, 2020 10:18
@dmdashenkov
Copy link
Contributor Author

@armiol, PTAL again.

@dmdashenkov dmdashenkov merged commit a3a05dc into master May 31, 2020
@dmdashenkov dmdashenkov deleted the kotlin-gradle-scripts branch May 31, 2020 18:03
@dmitrykuzmin dmitrykuzmin mentioned this pull request Sep 8, 2020
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