@@ -10,17 +10,45 @@ namespace Aspire.Hosting
1010{
1111 public static partial class JavaAppHostingExtension
1212 {
13+ [ System . Obsolete ( "Use AddJavaContainerApp instead. This method will be removed in a future version." ) ]
1314 public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppContainerResource > AddJavaApp ( this IDistributedApplicationBuilder builder , string name , ApplicationModel . JavaAppContainerResourceOptions options ) { throw null ; }
1415
16+ [ System . Obsolete ( "Use AddJavaApp(string, string, string, string[]?) instead. This method will be removed in a future version." ) ]
1517 public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > AddJavaApp ( this IDistributedApplicationBuilder builder , string name , string workingDirectory , ApplicationModel . JavaAppExecutableResourceOptions options ) { throw null ; }
1618
19+ public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > AddJavaApp ( this IDistributedApplicationBuilder builder , string name , string workingDirectory , string jarPath , string [ ] ? args = null ) { throw null ; }
20+
21+ public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > AddJavaApp ( this IDistributedApplicationBuilder builder , string name , string workingDirectory ) { throw null ; }
22+
23+ public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppContainerResource > AddJavaContainerApp ( this IDistributedApplicationBuilder builder , string name , string image , string ? imageTag = null ) { throw null ; }
24+
25+ [ System . Obsolete ( "Use AddJavaContainerApp instead. This method will be removed in a future version." ) ]
1726 public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppContainerResource > AddSpringApp ( this IDistributedApplicationBuilder builder , string name , ApplicationModel . JavaAppContainerResourceOptions options ) { throw null ; }
1827
28+ [ System . Obsolete ( "Use AddJavaApp instead. This method will be removed in a future version." ) ]
1929 public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > AddSpringApp ( this IDistributedApplicationBuilder builder , string name , string workingDirectory , ApplicationModel . JavaAppExecutableResourceOptions options ) { throw null ; }
2030
21- public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > WithMavenBuild ( this ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > builder , MavenOptions ? mavenOptions = null ) { throw null ; }
31+ public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > WithGradleBuild ( this ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > builder , params string [ ] args ) { throw null ; }
32+
33+ public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > WithGradleTask ( this ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > builder , string task , params string [ ] args ) { throw null ; }
34+
35+ public static ApplicationModel . IResourceBuilder < T > WithJvmArgs < T > ( this ApplicationModel . IResourceBuilder < T > builder , string [ ] args )
36+ where T : ApplicationModel . IResourceWithEnvironment { throw null ; }
37+
38+ [ System . Obsolete ( "Use WithMavenBuild(string?, params string[]) instead. This method will be removed in a future version." ) ]
39+ public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > WithMavenBuild ( this ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > builder , MavenOptions mavenOptions ) { throw null ; }
40+
41+ public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > WithMavenBuild ( this ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > builder , params string [ ] args ) { throw null ; }
42+
43+ public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > WithMavenGoal ( this ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > builder , string goal , params string [ ] args ) { throw null ; }
44+
45+ public static ApplicationModel . IResourceBuilder < T > WithOtelAgent < T > ( this ApplicationModel . IResourceBuilder < T > builder , string ? agentPath = null )
46+ where T : ApplicationModel . IResourceWithEnvironment { throw null ; }
47+
48+ public static ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > WithWrapperPath ( this ApplicationModel . IResourceBuilder < ApplicationModel . JavaAppExecutableResource > builder , string wrapperScript ) { throw null ; }
2249 }
2350
51+ [ System . Obsolete ( "This class will be removed in a future version." ) ]
2452 public sealed partial class MavenOptions
2553 {
2654 public string [ ] Args { get { throw null ; } set { } }
@@ -33,11 +61,17 @@ public sealed partial class MavenOptions
3361
3462namespace Aspire . Hosting . ApplicationModel
3563{
64+ public partial class GradleBuildResource : ExecutableResource
65+ {
66+ public GradleBuildResource ( string name , string wrapperScript , string workingDirectory ) : base ( default ! , default ! , default ! ) { }
67+ }
68+
3669 public partial class JavaAppContainerResource : ContainerResource , IResourceWithServiceDiscovery , IResourceWithEndpoints , IResource
3770 {
3871 public JavaAppContainerResource ( string name , string ? entrypoint = null ) : base ( default ! , default ) { }
3972 }
4073
74+ [ System . Obsolete ( "This class will be removed in a future version." ) ]
4175 public partial class JavaAppContainerResourceOptions
4276 {
4377 public string [ ] ? Args { get { throw null ; } set { } }
@@ -55,11 +89,17 @@ public partial class JavaAppContainerResourceOptions
5589 public int TargetPort { get { throw null ; } set { } }
5690 }
5791
58- public partial class JavaAppExecutableResource : ExecutableResource , IResourceWithServiceDiscovery , IResourceWithEndpoints , IResource
92+ public partial class JavaAppExecutableResource : ExecutableResource , IResourceWithServiceDiscovery , IResourceWithEndpoints , IResource , IResourceWithWaitSupport
5993 {
94+ [ System . Obsolete ( "Use JavaAppExecutableResource(string, string) instead. This constructor will be removed in a future version." ) ]
6095 public JavaAppExecutableResource ( string name , string command , string workingDirectory ) : base ( default ! , default ! , default ! ) { }
96+
97+ public JavaAppExecutableResource ( string name , string workingDirectory ) : base ( default ! , default ! , default ! ) { }
98+
99+ public string ? JarPath { get { throw null ; } set { } }
61100 }
62101
102+ [ System . Obsolete ( "This class will be removed in a future version." ) ]
63103 public partial class JavaAppExecutableResourceOptions
64104 {
65105 public string ? ApplicationName { get { throw null ; } set { } }
@@ -72,4 +112,9 @@ public partial class JavaAppExecutableResourceOptions
72112
73113 public int Port { get { throw null ; } set { } }
74114 }
115+
116+ public partial class MavenBuildResource : ExecutableResource
117+ {
118+ public MavenBuildResource ( string name , string wrapperScript , string workingDirectory ) : base ( default ! , default ! , default ! ) { }
119+ }
75120}
0 commit comments