Skip to content

Commit 084a0a4

Browse files
authored
remove mill plugin (#22736)
1 parent a62ed1d commit 084a0a4

File tree

19 files changed

+0
-3038
lines changed

19 files changed

+0
-3038
lines changed

.github/workflows/mill-plugin-tests.yaml

Lines changed: 0 additions & 69 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ COPY ./google_checkstyle.xml ${GEN_DIR}
1313
# All poms are copied, then we go offline, to allow for better caching of code changes without fetching all dependencies each time
1414
COPY ./modules/openapi-generator-gradle-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-gradle-plugin/
1515
COPY ./modules/openapi-generator-maven-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-maven-plugin/
16-
COPY ./modules/openapi-generator-mill-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-mill-plugin/
1716
COPY ./modules/openapi-generator-online/pom.xml ${GEN_DIR}/modules/openapi-generator-online/
1817
COPY ./modules/openapi-generator-cli/pom.xml ${GEN_DIR}/modules/openapi-generator-cli/
1918
COPY ./modules/openapi-generator-core/pom.xml ${GEN_DIR}/modules/openapi-generator-core/
@@ -24,7 +23,6 @@ RUN mvn dependency:go-offline
2423
# Modules are copied individually here to allow for caching of docker layers between major.minor versions
2524
COPY ./modules/openapi-generator-gradle-plugin ${GEN_DIR}/modules/openapi-generator-gradle-plugin
2625
COPY ./modules/openapi-generator-maven-plugin ${GEN_DIR}/modules/openapi-generator-maven-plugin
27-
COPY ./modules/openapi-generator-mill-plugin ${GEN_DIR}/modules/openapi-generator-mill-plugin
2826
COPY ./modules/openapi-generator-online ${GEN_DIR}/modules/openapi-generator-online
2927
COPY ./modules/openapi-generator-cli ${GEN_DIR}/modules/openapi-generator-cli
3028
COPY ./modules/openapi-generator-core ${GEN_DIR}/modules/openapi-generator-core

bin/utils/release/release_version_update.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ declare -a xml_files=(
9393
declare -a properties_files=(
9494
"${root}/modules/openapi-generator-gradle-plugin/gradle.properties"
9595
"${root}/modules/openapi-generator-gradle-plugin/samples/local-spec/gradle.properties"
96-
"${root}/modules/openapi-generator-mill-plugin/example/mill-build/version.properties"
9796
)
9897

9998
${cwd}/bump.sh -f ${version} -i ${inc} ${xml_files[@]}

docs/plugins.md

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -120,56 +120,3 @@ openApiGenerate {
120120
```
121121
122122
*If you want to create separate tasks (for example when you have more than one api spec and require different parameters for each), this is how to do so in Gradle 7+: `tasks.register('taskName', org.openapitools.generator.gradle.plugin.tasks.GenerateTask) { ... }`.*
123-
124-
## Mill
125-
126-
This Mill library provides a Mill module that can be used to generate code from OpenAPI specifications.
127-
128-
### Example
129-
130-
```scala
131-
//| mill-version: 1.0.6
132-
//| mvnDeps:
133-
//| - org.openapitools:openapi-generator-mill-plugin:7.19.0 # 1.
134-
135-
import mill.*
136-
137-
import org.openapitools.generator.mill.OpenApiModule // 2.
138-
139-
object `package` extends JavaModule with MavenModule with OpenApiModule { // 3.
140-
141-
// other Mill config...
142-
143-
object openapi extends OpenApiConfig { // 4.
144-
def inputSpec: T[PathRef] = Task.Source(BuildCtx.workspaceRoot / "api" / "petstore.yaml")
145-
// other config options...
146-
}
147-
148-
override def generatedSources: T[Seq[PathRef]] = Seq(
149-
PathRef(Task.dest),
150-
openapi.generate(), // 5.
151-
)
152-
}
153-
```
154-
155-
1. Add the plugin to your `build.mill` as `mvnDeps` in the header section
156-
2. import `org.openapitools.generator.mill.OpenApiModule`
157-
3. add `OpenApiModule` to the module definition
158-
4. configure 1-n `OpenApiConfig` as sub-modules
159-
5. run the generation as part of the `compile` task
160-
161-
This gives access to the following tasks:
162-
163-
| Task | Description |
164-
|---------------------------|---------------------------------------------------------------------------------------------|
165-
| <configName>.generate | Generate code via Open API Tools Generator for Open API 2.0 or 3.x specification documents. |
166-
| <configName>.validateSpec | Validates the configured spec |
167-
168-
and a command
169-
170-
| Command | Description |
171-
|---------------------|------------------------------------------------|
172-
| validateOpenapiSpec | Takes the path to a spec file and validates it |
173-
174-
175-
For full details of all options, see the [plugin README](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-mill-plugin).

0 commit comments

Comments
 (0)