itsallcode / openfasttrace-gradle Goto Github PK
View Code? Open in Web Editor NEWGradle plugin for OpenFastTrace (https://github.com/itsallcode/openfasttrace)
License: GNU General Public License v3.0
Gradle plugin for OpenFastTrace (https://github.com/itsallcode/openfasttrace)
License: GNU General Public License v3.0
Original Ticket: itsallcode/openfasttrace#152
When calling ./gradlew.bat --stacktrace --debug --no-daemon info traceRequirements
OFT fails with error message "Could not generate a proxy class for class ..."
./gradlew.bat --stacktrace --debug --no-daemon info traceRequirements
./gradlew.bat --stacktrace --debug --no-daemon info traceRequirements
shall start without "[org.gradle.internal.buildevents.BuildExceptionReporter]"
11:30:00.142 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.ClassNotFoundException: org.gradle.api.file.RegularFileProperty
When failBuild
is set to true
, the build must fail when tracing fails.
When generating an HTML report the output is written to build/reports/tracing.txt
when no filename is explicitly specified
See test case testHtmlReportConfig
When no filename is specified the default should be
Gradle issues a deprecation warning when using the OFT plugin on Gradle 5.
build.gradle
:plugins {
id "org.itsallcode.openfasttrace" version "0.6.0"
}
gradle projects --warning-mode all -is
:...
Initializing OpenFastTrack plugin for project 'root project 'gradle-oft-deprecation''
Setting up plugin configuration for project 'gradle-oft-deprecation'
The ProjectLayout.fileProperty() method has been deprecated. This is scheduled to be removed in Gradle 6.0. Please use the ObjectFactory.fileProperty() method instead.
at org.gradle.api.internal.file.DefaultProjectLayout.fileProperty(DefaultProjectLayout.java:78)
at org.itsallcode.openfasttrace.gradle.util.DeprecationUtil.createFileProperty(DeprecationUtil.java:35)
at org.itsallcode.openfasttrace.gradle.config.TracingConfig.<init>(TracingConfig.java:54)
at org.itsallcode.openfasttrace.gradle.config.TracingConfig_Decorated.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:51)
at org.gradle.api.internal.ClassGeneratorBackedInstantiator.newInstance(ClassGeneratorBackedInstantiator.java:36)
at org.gradle.api.internal.plugins.DefaultConvention.instantiate(DefaultConvention.java:242)
at org.gradle.api.internal.plugins.DefaultConvention.create(DefaultConvention.java:142)
at org.itsallcode.openfasttrace.gradle.OpenFastTracePlugin.createConfigDsl(OpenFastTracePlugin.java:61)
at org.gradle.api.internal.DefaultMutationGuard$2.execute(DefaultMutationGuard.java:41)
at org.gradle.internal.Actions.with(Actions.java:245)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$3.run(BuildOperationCrossProjectConfigurator.java:90)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.runProjectConfigureAction(BuildOperationCrossProjectConfigurator.java:87)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.access$500(BuildOperationCrossProjectConfigurator.java:32)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$2.run(BuildOperationCrossProjectConfigurator.java:81)
at org.gradle.internal.Factories$1.create(Factories.java:25)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:200)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:186)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.runProjectConfigureActionWithMutationLock(BuildOperationCrossProjectConfigurator.java:78)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.access$400(BuildOperationCrossProjectConfigurator.java:32)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$1.doRunProjectConfigure(BuildOperationCrossProjectConfigurator.java:69)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$BlockConfigureBuildOperation.run(BuildOperationCrossProjectConfigurator.java:130)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.runBlockConfigureAction(BuildOperationCrossProjectConfigurator.java:65)
at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.allprojects(BuildOperationCrossProjectConfigurator.java:54)
at org.gradle.api.internal.project.DefaultProject.allprojects(DefaultProject.java:653)
at org.itsallcode.openfasttrace.gradle.OpenFastTracePlugin.apply(OpenFastTracePlugin.java:53)
at org.itsallcode.openfasttrace.gradle.OpenFastTracePlugin.apply(OpenFastTracePlugin.java:44)
at org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:42)
... lots of stack frames
Gradle issues no deprecation warnings.
Obviously, this isn't really a bug. You should be aware of this, however. I'm not even sure there is a way to get rid of the deprecation warning, without breaking compatibility with Gradle 4.x. Depends on when ObjectFactory was introduced.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.