Closed Karsei closed 1 year ago
I'm experincing same issue, plz share the best solution about it π
It still works with version 1.5.8. If you don't have any special settings, you can easily change it.
plugins {
id 'org.asciidoctor.convert' version '1.5.8'
}
ext {
set('snippetsDir', file("build/generated-snippets"))
}
tasks.named('asciidoctor') {
inputs.dir snippetsDir
dependsOn test
}
I'm experincing same issue, plz share the best solution about it π
It still works with version 1.5.8. If you don't have any special settings, you can easily change it.
plugins { id 'org.asciidoctor.convert' version '1.5.8' } ext { set('snippetsDir', file("build/generated-snippets")) } tasks.named('asciidoctor') { inputs.dir snippetsDir dependsOn test }
thank u! I also checked that it works in Gradle 7.4. so it might be another solution
I tried the same in gradle 7.4.1 and Kotlin but it fails
plugins {
...
id("org.asciidoctor.jvm.convert") version "1.5.8"
...
}
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
...
mavenCentral()
maven(url = "https://repo.spring.io/release")
}
...
Give me a solution? thank you π
Plugin [id: 'org.asciidoctor.jvm.convert', version: '1.5.8'] was not found in any of the following sources:
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'org.asciidoctor.jvm.convert', version: '1.5.8'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.asciidoctor.jvm.convert:org.asciidoctor.jvm.convert.gradle.plugin:1.5.8')
Searched in the following repositories:
Gradle Central Plugin Repository
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult(DefaultPluginRequestApplicator.java:238)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.lambda$resolvePluginRequests$3(DefaultPluginRequestApplicator.java:168)
at org.gradle.util.internal.CollectionUtils.collect(CollectionUtils.java:207)
at org.gradle.util.internal.CollectionUtils.collect(CollectionUtils.java:201)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolvePluginRequests(DefaultPluginRequestApplicator.java:166)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugins(DefaultPluginRequestApplicator.java:101)
at org.gradle.kotlin.dsl.provider.PluginRequestsHandler.handle(PluginRequestsHandler.kt:48)
at org.gradle.kotlin.dsl.provider.StandardKotlinScriptEvaluator$InterpreterHost.applyPluginsTo(KotlinScriptEvaluator.kt:195)
at org.gradle.kotlin.dsl.execution.Interpreter$ProgramHost.applyPluginsTo(Interpreter.kt:398)
at Program.execute(Unknown Source)
at org.gradle.kotlin.dsl.execution.Interpreter$ProgramHost.eval(Interpreter.kt:532)
at org.gradle.kotlin.dsl.execution.Interpreter.eval(Interpreter.kt:205)
at org.gradle.kotlin.dsl.provider.StandardKotlinScriptEvaluator.evaluate(KotlinScriptEvaluator.kt:115)
at org.gradle.kotlin.dsl.provider.KotlinScriptPluginFactory$create$1.invoke(KotlinScriptPluginFactory.kt:51)
at org.gradle.kotlin.dsl.provider.KotlinScriptPluginFactory$create$1.invoke(KotlinScriptPluginFactory.kt:36)
at org.gradle.kotlin.dsl.provider.KotlinScriptPlugin.apply(KotlinScriptPlugin.kt:34)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.configuration.BuildOperationScriptPlugin.lambda$apply$0(BuildOperationScriptPlugin.java:62)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:44)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:62)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:360)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:378)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:359)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:42)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:35)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.lambda$run$0(LifecycleProjectEvaluator.java:109)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:360)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$withProjectLock$2(DefaultProjectStateRegistry.java:408)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:270)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withProjectLock(DefaultProjectStateRegistry.java:408)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:389)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:359)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:100)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:72)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:760)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:151)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.ensureConfigured(DefaultProjectStateRegistry.java:328)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:33)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:47)
at org.gradle.configuration.DefaultProjectsPreparer.prepareProjects(DefaultProjectsPreparer.java:50)
at org.gradle.configuration.BuildTreePreparingProjectsPreparer.prepareProjects(BuildTreePreparingProjectsPreparer.java:64)
at org.gradle.configuration.BuildOperationFiringProjectsPreparer$ConfigureBuild.run(BuildOperationFiringProjectsPreparer.java:52)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.configuration.BuildOperationFiringProjectsPreparer.prepareProjects(BuildOperationFiringProjectsPreparer.java:40)
at org.gradle.initialization.VintageBuildModelController.lambda$prepareProjects$3(VintageBuildModelController.java:89)
at org.gradle.internal.model.StateTransitionController.lambda$doTransition$12(StateTransitionController.java:227)
at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:238)
at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:226)
at org.gradle.internal.model.StateTransitionController.lambda$transitionIfNotPreviously$10(StateTransitionController.java:201)
at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:34)
at org.gradle.internal.model.StateTransitionController.transitionIfNotPreviously(StateTransitionController.java:197)
at org.gradle.initialization.VintageBuildModelController.prepareProjects(VintageBuildModelController.java:89)
at org.gradle.initialization.VintageBuildModelController.getConfiguredModel(VintageBuildModelController.java:64)
at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$withProjectsConfigured$1(DefaultBuildLifecycleController.java:121)
at org.gradle.internal.model.StateTransitionController.lambda$notInState$4(StateTransitionController.java:143)
at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44)
at org.gradle.internal.model.StateTransitionController.notInState(StateTransitionController.java:139)
at org.gradle.internal.build.DefaultBuildLifecycleController.withProjectsConfigured(DefaultBuildLifecycleController.java:121)
at org.gradle.internal.build.DefaultBuildToolingModelController.locateBuilderForTarget(DefaultBuildToolingModelController.java:57)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator$DefaultBuildTreeModelController.lambda$locateBuilderForTarget$0(DefaultBuildTreeModelCreator.java:73)
at org.gradle.internal.build.DefaultBuildLifecycleController.withToolingModels(DefaultBuildLifecycleController.java:178)
at org.gradle.internal.build.AbstractBuildState.withToolingModels(AbstractBuildState.java:111)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator$DefaultBuildTreeModelController.locateBuilderForTarget(DefaultBuildTreeModelCreator.java:73)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator$DefaultBuildTreeModelController.locateBuilderForDefaultTarget(DefaultBuildTreeModelCreator.java:68)
at org.gradle.tooling.internal.provider.runner.DefaultBuildController.getTarget(DefaultBuildController.java:157)
at org.gradle.tooling.internal.provider.runner.DefaultBuildController.getModel(DefaultBuildController.java:101)
at org.gradle.tooling.internal.consumer.connection.ParameterAwareBuildControllerAdapter.getModel(ParameterAwareBuildControllerAdapter.java:39)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.getModel(UnparameterizedBuildController.java:113)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.getModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.findModel(UnparameterizedBuildController.java:97)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.findModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.findModel(UnparameterizedBuildController.java:81)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.findModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.findModel(UnparameterizedBuildController.java:66)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.findModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:116)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:42)
at org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute(InternalBuildActionAdapter.java:64)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.runAction(AbstractClientProvidedBuildActionRunner.java:131)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.beforeTasks(AbstractClientProvidedBuildActionRunner.java:99)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator.beforeTasks(DefaultBuildTreeModelCreator.java:52)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$fromBuildModel$1(DefaultBuildTreeLifecycleController.java:75)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$4(DefaultBuildTreeLifecycleController.java:106)
at org.gradle.internal.model.StateTransitionController.lambda$transition$6(StateTransitionController.java:166)
at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:238)
at org.gradle.internal.model.StateTransitionController.lambda$transition$7(StateTransitionController.java:166)
at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44)
at org.gradle.internal.model.StateTransitionController.transition(StateTransitionController.java:166)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:103)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.fromBuildModel(DefaultBuildTreeLifecycleController.java:74)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner.runClientAction(AbstractClientProvidedBuildActionRunner.java:43)
at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run(ClientProvidedPhasedActionRunner.java:53)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:49)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:69)
at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:119)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:128)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:65)
at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:53)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:65)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:36)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:270)
at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:119)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.execute(RunAsWorkerThreadBuildActionExecutor.java:36)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:103)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64)
at org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:100)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:88)
at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:69)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:62)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:41)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:63)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:58)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:42)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:47)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
at org.gradle.util.internal.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
@cr-lgl In gradle plugin repository, the lowest version is 2.0.0 so, gradle can't find 1.5.8 in gradle plugin repository
@KRBeomJunKim I retried version between 2.0.0 and 3.3.2....
it failed again " Could not find org.ysb33r.gradle:grolifant:0.xx.x" π₯ π₯ π₯
> Could not resolve all files for configuration ':classpath'.
> Could not find org.ysb33r.gradle:grolifant:0.10.
Searched in the following locations:
- https://plugins.gradle.org/m2/org/ysb33r/gradle/grolifant/0.10/grolifant-0.10.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project : > org.asciidoctor.jvm.convert:org.asciidoctor.jvm.convert.gradle.plugin:2.0.0 > org.asciidoctor:asciidoctor-gradle-jvm:2.0.0
project : > org.asciidoctor.jvm.convert:org.asciidoctor.jvm.convert.gradle.plugin:2.0.0 > org.asciidoctor:asciidoctor-gradle-jvm:2.0.0 > org.asciidoctor:asciidoctor-gradle-base:2.0.0
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
@KRBeomJunKim I retried version between 2.0.0 and 3.3.2....
it failed again " Could not find org.ysb33r.gradle:grolifant:0.xx.x" π₯ π₯ π₯
> Could not resolve all files for configuration ':classpath'. > Could not find org.ysb33r.gradle:grolifant:0.10. Searched in the following locations: - https://plugins.gradle.org/m2/org/ysb33r/gradle/grolifant/0.10/grolifant-0.10.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration. Required by: project : > org.asciidoctor.jvm.convert:org.asciidoctor.jvm.convert.gradle.plugin:2.0.0 > org.asciidoctor:asciidoctor-gradle-jvm:2.0.0 project : > org.asciidoctor.jvm.convert:org.asciidoctor.jvm.convert.gradle.plugin:2.0.0 > org.asciidoctor:asciidoctor-gradle-jvm:2.0.0 > org.asciidoctor:asciidoctor-gradle-base:2.0.0 Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
try this
plugins {
id 'org.asciidoctor.convert' version '1.5.8'
}
instead of
plugins {
id 'org.asciidoctor.jvm.convert' version '1.5.8'
}
When I created the project with Spring Initializer, I confirmed that it works well in the build with 1.5.8 in build.gradle
(The latest version of org.asciidoctor.convert
is 2.4.0). However, it may not work when running the asciidoctor task with gradle 7.
@Karsei Not works for me TnT
I checked solution with Gradle 7, it seems does not work... looking for other way
add your top of build.gradle (or build.gradle.kts)
buildscript {
repositories {
jcenter() // NOT mavenCentral()
}
dependencies {
classpath ("org.ysb33r.gradle:grolifant:0.17.0")
}
}
plugins {
...
}
https://mvnrepository.com/artifact/org.ysb33r.gradle/grolifant?repo=jcenter
@Karsei, I'm wondering is the issue occurs in Github Action only, or also occurs with local setting.
@Karsei, I'm wondering is the issue occurs in Github Action only, or also occurs with local setting.
I found this issue while deploying with gitlab ci/cd in my company. It's the same in local env.
For some reason, everyone commenting here is located in Korea including myself. Could this be a regional CDN issue with gradle plugin repo?
μ λ§ νκ΅μμλ§ κ·Έλ°κ±°μμ?
For some reason, everyone commenting here is located in Korea including myself. Could this be a regional CDN issue with gradle plugin repo?
I don't think that. It seems that something is missing as the update date is recent.
maybe not.. according error message, like below
> Could not resolve all files for configuration ':classpath'.
> Could not find org.ysb33r.gradle:grolifant:0.16.1.
Searched in the following locations:
- https://plugins.gradle.org/m2/org/ysb33r/gradle/grolifant/0.16.1/grolifant-0.16.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project : > org.asciidoctor.jvm.convert:org.asciidoctor.jvm.convert.gradle.plugin:3.3.2 > org.asciidoctor:asciidoctor-gradle-jvm:3.3.2
project : > org.asciidoctor.jvm.convert:org.asciidoctor.jvm.convert.gradle.plugin:3.3.2 > org.asciidoctor:asciidoctor-gradle-jvm:3.3.2 > org.asciidoctor:asciidoctor-gradle-base:3.3.2
https://plugins.gradle.org/m2/org/ysb33r/gradle/grolifant/0.16.1/grolifant-0.16.1.pom
is redirect to https://repo.maven.apache.org/maven2/org/ysb33r/gradle/grolifant/0.16.1/grolifant-0.16.1.pom
and same as origin, 404 not found
but you can see some listing libs at https://repo.maven.apache.org/maven2/org/ysb33r/gradle/
Some time ago, there was a redirect problem for the jcenter repository in the Gradle plugin portal. *Note: https://discuss.gradle.org/t/plugin-portal-dependency-resolution-failing-due-to-jcenter-usage/44131
Gradle plugin portal team changed the path where they were looking at the jcenter repository to see the maven repository in batches. However, it is possible that some versions are missing from the maven repository.
To predict through this, https://plugins.gradle.org/m2/org/ysb33r/gradle/grolifant/0.16.1/grolifant-0.16.1.pom does not exist. *Note: http://ysb33rorg.gitlab.io/grolifant/ https://repo.maven.apache.org/maven2/org/ysb33r/gradle/
current latest version library need to change the version of grolifant
referenced in org.asciidoctor:asciidoctor-gradle-base:3.3.2
.
target -> https://github.com/asciidoctor/asciidoctor-gradle-plugin/blob/master/gradle.properties
@calathea-ebc λ,
μ΄κ±΄ μλ§ 10μ μ΄μ, κ·Έλ μ΄λ€ μ μ₯μμμ jcenter μ μ₯μλ₯Ό λ³΄κ³ μλ μμ‘΄κ΄κ³λ₯Ό maven μ μ₯μλ‘ μΌκ΄λ³κ²½νλ©΄μ μκΈ΄ λ¬Έμ λΌ νκ΅λ§ μκΈ°λ λ¬Έμ λ μλκ²λλ€. jcenter μ μμλ grolifant-0.16.1 μ΄ maven μμ μ°Ύμ μκ° μμμ΅λλ€.
νμ¬ μ΅μ λ²μ μΈ org.asciidoctor:asciidoctor-gradle-base:3.3.2
μμ grolifant λ²μ μ λ³κ²½ν κ²μ λ°°ν¬νλ©΄ λ©λλ€.
https://status.gradle.com/?utm_source=embed μμ jcenter μ κ΄λ ¨λ μ΄μλ μμλ€μ.
I got some trouble today too. When I use github action ci/cd. And the latest asciidoctor-gradle-plugin uses the phantom grolifant version now. So needs to change the version of grolifant from 0.16.1 to 0.16.2 .
here is change pr: https://github.com/asciidoctor/asciidoctor-gradle-plugin/pull/653
@calathea-ebc λ,
μ΄κ±΄ μλ§ 10μ μ΄μ, κ·Έλ μ΄λ€ μ μ₯μμμ jcenter μ μ₯μλ₯Ό λ³΄κ³ μλ μμ‘΄κ΄κ³λ₯Ό maven μ μ₯μλ‘ μΌκ΄λ³κ²½νλ©΄μ μκΈ΄ λ¬Έμ λΌ νκ΅λ§ μκΈ°λ λ¬Έμ λ μλκ²λλ€. jcenter μ μμλ grolifant-0.16.1 μ΄ maven μμ μ°Ύμ μκ° μμμ΅λλ€.
νμ¬ μ΅μ λ²μ μΈ
org.asciidoctor:asciidoctor-gradle-base:3.3.2
μμ grolifant λ²μ μ λ³κ²½ν κ²μ λ°°ν¬νλ©΄ λ©λλ€.https://status.gradle.com/?utm_source=embed μμ jcenter μ κ΄λ ¨λ μ΄μλ μμλ€μ.
γ γ κ°μ λ¬Έμ κ²ͺμΌμ ¨λ λ΄ λλ€.
μμ μ‘°μΉλ°©λ²μ... plugins {}
μμμμ asciidoctor-gradle-plugin
μ μ μΈμμΌλμλ κ²λ λ°©λ²μ
λλ€.
plugins {
id "org.springframework.boot" version "2.7.4"
id "io.spring.dependency-management" version "1.0.13.RELEASE"
// id "org.asciidoctor.jvm.convert" version "3.3.2" // TODO check fix version release
id "com.gorylenko.gradle-git-properties" version "2.4.1"
id "com.epages.restdocs-api-spec" version "0.16.2"
id "org.sonarqube" version "3.4.0.2513"
id "com.diffplug.spotless" version "6.11.0"
id "java"
id "jacoco"
id "checkstyle"
id "org.jetbrains.kotlin.jvm" version "1.6.21"
id "org.jetbrains.kotlin.plugin.spring" version "1.6.21"
id "org.jetbrains.kotlin.plugin.jpa" version "1.6.21"
id "org.jetbrains.kotlin.plugin.noarg" version "1.6.21"
id "org.jetbrains.kotlin.plugin.allopen" version "1.6.21"
}
μ΄μ 곡μ ν΄μ£Όμ μ μ λ§ κ°μ¬λ립λλ€ ! λλΆμ λΉ λ₯΄κ² μμΈ νμ ν μ μμμ΅λλ€ ππ
I don't think that minor changes to the version of grolifant will help for long - the basic problem is the reliance on JCenter, which was deprecated last year and is currently unavailable. The solution is that the plugin author(s) need to migrate away from JCenter, as described here:
JCenter shutdown impact on Gradle builds
This includes finding/creating alternative locations for the asciidoctor plugin requirements - either Maven Central or some other public repository. Also, either ensuring that the version of grolifant that is required is present in that location, or upgrading to one that is (in this case, that means upgrading from 0.16.x to at least 1.0.0, which is a big jump).
JFrog made the following statement in April last year:
We listened to the community and will keep JCenter as a read-only repository indefinitely. Our customers and the community can continue to rely on JCenter as a reliable mirror for Java packages.
... however relying on JCenter has clearly caused builds to break (including mine). JFrog doesn't seem to be interested in whether JCenter is available or not.
There is more discussion here: https://stackoverflow.com/questions/74258160/is-jcenter-down-permanently-31-oct unfortunately none of the repositories suggested there provide the required version of grolifant either.
I mean, the next step would just to pump the version to 0.16.2 which seems to me around without an issue?
There is even already a PR for it: https://github.com/asciidoctor/asciidoctor-gradle-plugin/pull/653
So all a question of time until it's fixed. Can imagine that it's bothering a lot of people
anyone know a way to explicit override to use 0.16.2 while waiting for updated release?
Configure the following in settings.gradle
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'org.ysb33r.gradle:grolifant:0.16.2'
}
}
@aalmiray It is failing with:
Could not resolve all files for configuration 'classpath'.
> Could not find org.ysb33r.gradle:grolifant:0.16.2.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/ysb33r/gradle/grolifant/0.16.2/grolifant-0.16.2.pom
- https://plugins.gradle.org/m2/org/ysb33r/gradle/grolifant/0.16.2/grolifant-0.16.2.pom
Required by:
unspecified:unspecified:unspecified
also not working for me.
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'org.asciidoctor.jvm.convert', version: '1.5.8'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.asciidoctor.jvm.convert:org.asciidoctor.jvm.convert.gradle.plugin:1.5.8')
Searched in the following repositories:
Gradle Central Plugin Repository
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult(DefaultPluginRequestApplicator.java:213)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.lambda$resolvePluginRequests$4(DefaultPluginRequestApplicator.java:146)
at org.gradle.util.CollectionUtils.collect(CollectionUtils.java:207)
at org.gradle.util.CollectionUtils.collect(CollectionUtils.java:201)```
Version 0.16.2
is not available in the Maven Central - https://search.maven.org/search?q=g:org.ysb33r.gradle%20AND%20a:grolifant
Therefore, upgrading from 0.16.1
to 0.16.2
won't fix the issue of the JCenter outage.
A longer term fix would be to upgrade Grolifant to a version which is in the Maven Central, but, as mentioned before, this is quite a jump.
Apparently it's around now? My builds arent failing anymore.
yes, seems up again
builds succeed now
We back-pushed 0.16.1 to MavenCentral, so that will keep it running until we can get a new version out.
@ysb33r Very thanks. :)
@ysb33r thank you!
@ysb33r thank you :)
@ysb33r thank you! π
Thanks Schalk!!
Awesome π Thanks a lot
In gradle 7 version, the below build failure is appearing.
To reproduce the problem, it is configured as follows.