[Feature] Provide possibility to configure the source set where the generated sources are attached

オープン
#859 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
kotlin
領域
build-system

調査の方向性

生成されたソースを main ソースセットにアタッチする、リンク先の CodegenPlugin.kt の定義から始めます。そのソースセットがどのように選択され、Gradle プラグインがどのように設定を公開しているかを追跡します。プロジェクトで main の代わりに test を設定でき、生成されたソースが選択したソースセットにアタッチされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

backlog

Status Quo

The plugin has hardcoded definition of the source set where the generated sources are attached to - it is always main.

The Problem

GraphQL API owners would like to leverage DGS code generation in the test code of their projects, in order to test their APIs. With today's setup, the generated code ends up as part of the production code, while it is only intended for testing purposes.

Suggested Feature

Add possibility to configure the source set where the generated code is attached to. This will allow to provide test in the use case above.

主要言語
Kotlin
スター
220
フォーク
123
平均マージ
1日 6時間
マージ済み PR(30日)
23

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Netflix/dgs-codegen のほかの issue

Netflix/dgs-codegen の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。