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

Make plugin compatible with Kotlin Script #197

Merged
merged 3 commits into from
Oct 10, 2023
Merged

Conversation

xgouchet
Copy link
Member

@xgouchet xgouchet commented Oct 9, 2023

What does this PR do?

Adds configuration DSL to easily setup the plugin when using Kotlin Script

Motivation

Fixes #154

@xgouchet xgouchet requested review from a team as code owners October 9, 2023 16:39
0xnm
0xnm previously approved these changes Oct 10, 2023
Copy link
Member

@0xnm 0xnm left a comment

Choose a reason for hiding this comment

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

nice work! it is nice to have this support finally.

@xgouchet xgouchet force-pushed the xgouchet/154/kotlin_dsl branch from 13d65ab to 54d3d8a Compare October 10, 2023 08:07
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2023

Codecov Report

Merging #197 (50c35c2) into develop (48a858a) will decrease coverage by 0.45%.
The diff coverage is 20.00%.

@@              Coverage Diff              @@
##             develop     #197      +/-   ##
=============================================
- Coverage      86.70%   86.25%   -0.45%     
- Complexity       177      178       +1     
=============================================
  Files             21       21              
  Lines            579      582       +3     
  Branches          76       76              
=============================================
  Hits             502      502              
- Misses            49       53       +4     
+ Partials          28       27       -1     
Files Coverage Δ
...in/kotlin/com/datadog/gradle/plugin/DdExtension.kt 50.00% <20.00%> (-35.71%) ⬇️

... and 1 file with indirect coverage changes

@xgouchet xgouchet requested a review from 0xnm October 10, 2023 08:50
@xgouchet xgouchet merged commit c73e325 into develop Oct 10, 2023
3 checks passed
@xgouchet xgouchet deleted the xgouchet/154/kotlin_dsl branch October 10, 2023 09:11
@KDevvv
Copy link

KDevvv commented Oct 30, 2023

@0xnm when this fix will be released? It would be great to add it ASAP, and remove my hacky way to support different service name depending of variants

@0xnm
Copy link
Member

0xnm commented Oct 30, 2023

Hello @KamilPieta! Please check version 1.12.0 of our plugin, which has change.

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.

Provide example for variants configuration with Kotlin DSL
4 participants