for the purpose of testing Property's that are mar...
# community-support
c
for the purpose of testing Property's that are marked with safe read, is there a way to mark the project with configuration finished?
Copy code
project = ProjectBuilder.builder().build();
    project.getPluginManager().apply(SemverPlugin.class);
    var semver = project.getExtensions().getByType(SemverExtension.class).provider();
    assertThat(semver.get()).hasToString("0.1.3");
exception
Copy code
java.lang.IllegalStateException: Cannot query the value of this property because configuration of root project 'test' has not completed yet.
	at org.gradle.api.internal.provider.ValueState$NonFinalizedValue.maybeFinalizeOnRead(ValueState.java:203)
	at org.gradle.api.internal.provider.ValueState.finalizeOnReadIfNeeded(ValueState.java:138)
	at org.gradle.api.internal.provider.AbstractProperty.beforeRead(AbstractProperty.java:276)
	at org.gradle.api.internal.provider.AbstractProperty.beforeRead(AbstractProperty.java:268)
	at org.gradle.api.internal.provider.AbstractProperty.calculateOwnValue(AbstractProperty.java:162)
	at org.gradle.api.internal.provider.AbstractMinimalProvider.calculateOwnPresentValue(AbstractMinimalProvider.java:80)
	at org.gradle.api.internal.provider.AbstractMinimalProvider.get(AbstractMinimalProvider.java:100)
	at com.xenoterracide.gradle.semver.SemverPluginTest.apply(SemverPluginTest.java:42)