@@ -71,6 +71,10 @@ export class DependencyGraphConfig {
7171 return getOptionalInput ( 'dependency-graph-include-configurations' )
7272 }
7373
74+ getPluginRepository ( ) : PluginRepositoryConfig {
75+ return new PluginRepositoryConfig ( )
76+ }
77+
7478 static constructJobCorrelator ( workflow : string , jobId : string , matrixJson : string ) : string {
7579 const matrixString = this . describeMatrix ( matrixJson )
7680 const label = matrixString ? `${ workflow } -${ jobId } -${ matrixString } ` : `${ workflow } -${ jobId } `
@@ -301,16 +305,8 @@ export class BuildScanConfig {
301305 return core . getInput ( 'develocity-ccud-plugin-version' )
302306 }
303307
304- getGradlePluginRepositoryUrl ( ) : string {
305- return core . getInput ( 'gradle-plugin-repository-url' )
306- }
307-
308- getGradlePluginRepositoryUsername ( ) : string {
309- return core . getInput ( 'gradle-plugin-repository-username' )
310- }
311-
312- getGradlePluginRepositoryPassword ( ) : string {
313- return core . getInput ( 'gradle-plugin-repository-password' )
308+ getPluginRepository ( ) : PluginRepositoryConfig {
309+ return new PluginRepositoryConfig ( )
314310 }
315311
316312 private verifyTermsOfUseAgreement ( ) : boolean {
@@ -328,6 +324,20 @@ export class BuildScanConfig {
328324 }
329325}
330326
327+ export class PluginRepositoryConfig {
328+ getUrl ( ) : string | undefined {
329+ return getOptionalInput ( 'gradle-plugin-repository-url' )
330+ }
331+
332+ getUsername ( ) : string | undefined {
333+ return getOptionalInput ( 'gradle-plugin-repository-username' )
334+ }
335+
336+ getPassword ( ) : string | undefined {
337+ return getOptionalInput ( 'gradle-plugin-repository-password' )
338+ }
339+ }
340+
331341export class GradleExecutionConfig {
332342 getGradleVersion ( ) : string {
333343 return core . getInput ( 'gradle-version' )
0 commit comments