You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the same inputs, the generated config-properties.adoc file might be different.
While working on refactoring the micronaut-core build, I wrote an utility to check that the generated jar files were the same byte-to-byte before and after the migration. I noticed that it wasn't the case because of 2 files:
config-properties.adoc, generated by this project
spring-configuration-metadata.json
Here's a file generated in a first round:
++++<a id="io.micronaut.scheduling.executor.UserExecutorConfiguration" href="#io.micronaut.scheduling.executor.UserExecutorConfiguration">🔗</a>++++.Configuration Properties for api:io.micronaut.scheduling.executor.UserExecutorConfiguration[]
|===
|Property |Type |Description
| `+micronaut.executors.*.n-threads+`
|java.lang.Integer
|
| `+micronaut.executors.*.type+`
|api:io.micronaut.scheduling.executor.ExecutorType[]
|
| `+micronaut.executors.*.parallelism+`
|java.lang.Integer
|
| `+micronaut.executors.*.core-pool-size+`
|java.lang.Integer
|
| `+micronaut.executors.*.thread-factory-class+`
|java.lang.Class
|
| `+micronaut.executors.*.name+`
|java.lang.String
|Sets the executor name.
| `+micronaut.executors.*.number-of-threads+`
|java.lang.Integer
|Sets the number of threads for {@link io.micronaut.scheduling.executor.ExecutorType#FIXED}. Default value (2 * Number of processors available to the Java virtual machine).
|===
<<<++++
<aid="io.micronaut.runtime.ApplicationConfiguration.InstanceConfiguration"href="#io.micronaut.runtime.ApplicationConfiguration.InstanceConfiguration">🔗</a>
++++
.Configuration Properties for api:io.micronaut.runtime.ApplicationConfiguration.InstanceConfiguration[]
|===
|Property |Type |Description
| `+micronaut.application.instance+`
|api:io.micronaut.runtime.ApplicationConfiguration$InstanceConfiguration[]
|The instance configuration
| `+micronaut.application.instance.id+`
|java.lang.String
|The instance identifier
| `+micronaut.application.instance.group+`
|java.lang.String
|The instance auto scaling group
| `+micronaut.application.instance.zone+`
|java.lang.String
|The instance availability zone
| `+micronaut.application.instance.metadata+`
|java.util.Map
|The metadata to associate with the instance
|===
<<<++++
<aid="io.micronaut.runtime.ApplicationConfiguration"href="#io.micronaut.runtime.ApplicationConfiguration">🔗</a>
++++
.Configuration Properties for api:io.micronaut.runtime.ApplicationConfiguration[]
|===
|Property |Type |Description
| `+micronaut.application.default-charset+`
|java.nio.charset.Charset
|Default value (UTF-8).
| `+micronaut.application.name+`
|java.lang.String
|Set the application name
|===
<<<++++
<aid="io.micronaut.scheduling.io.watch.FileWatchConfiguration"href="#io.micronaut.scheduling.io.watch.FileWatchConfiguration">🔗</a>
++++
.Configuration Properties for api:io.micronaut.scheduling.io.watch.FileWatchConfiguration[]
|===
|Property |Type |Description
| `+micronaut.io.watch.enabled+`
|boolean
|Whether watch is enabled.
| `+micronaut.io.watch.restart+`
|boolean
|Set whether restart is enabled.
| `+micronaut.io.watch.paths+`
|java.util.List
|Sets the watch paths to use.
| `+micronaut.io.watch.check-interval+`
|java.time.Duration
|Sets the interval to wait between file watch polls.
|===
<<<
and the same file generated in another round:
++++<a id="io.micronaut.scheduling.executor.UserExecutorConfiguration" href="#io.micronaut.scheduling.executor.UserExecutorConfiguration">🔗</a>++++.Configuration Properties for api:io.micronaut.scheduling.executor.UserExecutorConfiguration[]
|===
|Property |Type |Description
| `+micronaut.executors.*.n-threads+`
|java.lang.Integer
|
| `+micronaut.executors.*.type+`
|api:io.micronaut.scheduling.executor.ExecutorType[]
|
| `+micronaut.executors.*.parallelism+`
|java.lang.Integer
|
| `+micronaut.executors.*.core-pool-size+`
|java.lang.Integer
|
| `+micronaut.executors.*.thread-factory-class+`
|java.lang.Class
|
| `+micronaut.executors.*.name+`
|java.lang.String
|Sets the executor name.
| `+micronaut.executors.*.number-of-threads+`
|java.lang.Integer
|Sets the number of threads for {@link io.micronaut.scheduling.executor.ExecutorType#FIXED}. Default value (2 * Number of processors available to the Java virtual machine).
|===
<<<++++
<aid="io.micronaut.scheduling.io.watch.FileWatchConfiguration"href="#io.micronaut.scheduling.io.watch.FileWatchConfiguration">🔗</a>
++++
.Configuration Properties for api:io.micronaut.scheduling.io.watch.FileWatchConfiguration[]
|===
|Property |Type |Description
| `+micronaut.io.watch.enabled+`
|boolean
|Whether watch is enabled.
| `+micronaut.io.watch.restart+`
|boolean
|Set whether restart is enabled.
| `+micronaut.io.watch.paths+`
|java.util.List
|Sets the watch paths to use.
| `+micronaut.io.watch.check-interval+`
|java.time.Duration
|Sets the interval to wait between file watch polls.
|===
<<<++++
<aid="io.micronaut.runtime.ApplicationConfiguration.InstanceConfiguration"href="#io.micronaut.runtime.ApplicationConfiguration.InstanceConfiguration">🔗</a>
++++
.Configuration Properties for api:io.micronaut.runtime.ApplicationConfiguration.InstanceConfiguration[]
|===
|Property |Type |Description
| `+micronaut.application.instance+`
|api:io.micronaut.runtime.ApplicationConfiguration$InstanceConfiguration[]
|The instance configuration
| `+micronaut.application.instance.id+`
|java.lang.String
|The instance identifier
| `+micronaut.application.instance.group+`
|java.lang.String
|The instance auto scaling group
| `+micronaut.application.instance.zone+`
|java.lang.String
|The instance availability zone
| `+micronaut.application.instance.metadata+`
|java.util.Map
|The metadata to associate with the instance
|===
<<<++++
<aid="io.micronaut.runtime.ApplicationConfiguration"href="#io.micronaut.runtime.ApplicationConfiguration">🔗</a>
++++
.Configuration Properties for api:io.micronaut.runtime.ApplicationConfiguration[]
|===
|Property |Type |Description
| `+micronaut.application.default-charset+`
|java.nio.charset.Charset
|Default value (UTF-8).
| `+micronaut.application.name+`
|java.lang.String
|Set the application name
|===
<<<
Notice that while the contents is the same, the order of sections differ.
The text was updated successfully, but these errors were encountered:
Given the same inputs, the generated
config-properties.adoc
file might be different.While working on refactoring the
micronaut-core
build, I wrote an utility to check that the generated jar files were the same byte-to-byte before and after the migration. I noticed that it wasn't the case because of 2 files:config-properties.adoc
, generated by this projectspring-configuration-metadata.json
Here's a file generated in a first round:
and the same file generated in another round:
Notice that while the contents is the same, the order of sections differ.
The text was updated successfully, but these errors were encountered: