[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[[["\u003cp\u003eThe Endpoints Framework Gradle plugin supports both server-side and client-side operations for App Engine projects, enabling the generation of Discovery documents, OpenAPI specifications, and client libraries.\u003c/p\u003e\n"],["\u003cp\u003eTo use the server-side plugin, apply \u003ccode\u003ecom.google.cloud.tools.endpoints-framework-server\u003c/code\u003e in your \u003ccode\u003ebuild.gradle\u003c/code\u003e, and configure properties like \u003ccode\u003ehostname\u003c/code\u003e within the \u003ccode\u003eendpointsServer\u003c/code\u003e closure.\u003c/p\u003e\n"],["\u003cp\u003eThe server-side plugin provides tasks like \u003ccode\u003eendpointsClientLibs\u003c/code\u003e, \u003ccode\u003eendpointsDiscoveryDocs\u003c/code\u003e, and \u003ccode\u003eendpointsOpenApiDocs\u003c/code\u003e for generating client libraries, discovery documents, and OpenAPI documents, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe client-side plugin, applied via \u003ccode\u003ecom.google.cloud.tools.endpoints-framework-client\u003c/code\u003e, generates client sources based on a list of \u003ccode\u003ediscoveryDocs\u003c/code\u003e, without exposing any specific tasks.\u003c/p\u003e\n"],["\u003cp\u003eThe plugin dependency is \u003ccode\u003ecom.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.2\u003c/code\u003e and is retrieved from Maven Central and you can find more information on the plugins on GitHub.\u003c/p\u003e\n"]]],[],null,["# Endpoints Framework Gradle Plugin\n\nThe Endpoints Framework Gradle plugin provides tasks and configurations to build\nand connect Endpoints Framework for App Engine projects. This plugin provides\nserver-side and client-side support. The *server-side* plugin generates\nDiscovery documents and OpenAPI specifications from an annotated Endpoints\nFramework Java project and client libraries. The *client-side* plugin generates\nclient libraries when a discovery document is available.\n\nPlugin dependency\n-----------------\n\nAdd the Endpoints Framework Gradle plugin dependency by using the following\nsnippet in your `build.gradle`. The following snippet retrieves the dependency\nfrom Maven Central: \n\n classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.2'\n\nServer-side plugin\n------------------\n\nAdd the server-side Endpoints Framework Gradle plugin using the following\nsnippet in your `build.gradle`: \n\n apply plugin: 'com.google.cloud.tools.endpoints-framework-server'\n\nSet server-side configuration in your `build.gradle` by the `endpointsServer`\nclosure: \n\n endpointsServer {\n // Endpoints Framework Plugin server-side configuration\n hostname = \"${projectId}.appspot.com\"\n }\n\nServer-side tasks and properties\n--------------------------------\n\nThe following tasks are exposed for the server-side only.\n\n### `endpointsClientLibs`\n\nThis task generates endpoints client libraries based on service classes.\n\nYou can use the following properties:\n\n### `endpointsDiscoveryDocs`\n\nThis task generates discovery documents based on service classes.\n\nYou can use the following properties:\n\n### `endpointsOpenApiDocs`\n\nThis task generates OpenAPI documents based on service classes.\n\nYou can use the following properties:\n\nClient-side plugin\n------------------\n\nTo add the client-side Endpoints Framework Gradle plugin using the following in\nyour `build.gradle`: \n\n apply plugin: 'com.google.cloud.tools.endpoints-framework-client'\n\nSet server-side configuration in your `build.gradle` by the `endpointsClient`\nclosure: \n\n endpointsClient {\n // client-side properties\n }\n\nClient-side properties\n----------------------\n\nThe client-side plugin doesn't expose tasks like the server-side plugin.\nApplying the client-side plugin will generate sources according to the following\nconfiguration properties.\n\nWhat's next\n-----------\n\n- Explore the plugin code and report issues on [GitHub](https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin)."]]