Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with org.ysb33r.gradle:grolifant #652

Closed
Karsei opened this issue Nov 8, 2022 · 39 comments
Closed

Build fails with org.ysb33r.gradle:grolifant #652

Karsei opened this issue Nov 8, 2022 · 39 comments

Comments

@Karsei
Copy link

Karsei commented Nov 8, 2022

In gradle 7 version, the below build failure is appearing.

A problem occurred configuring root project 'demo2'.
> 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

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

To reproduce the problem, it is configured as follows.

plugins {
    id "org.asciidoctor.jvm.convert" version "3.3.2"
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

repositories {
    mavenCentral()
}
@Karsei
Copy link
Author

Karsei commented Nov 8, 2022

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
}

@woonghyun0412
Copy link

woonghyun0412 commented Nov 8, 2022

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

@cr-lgl
Copy link

cr-lgl commented Nov 8, 2022

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)

@KRBeomJunKim
Copy link

KRBeomJunKim commented Nov 8, 2022

@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

@cr-lgl
Copy link

cr-lgl commented Nov 8, 2022

@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

@Karsei
Copy link
Author

Karsei commented Nov 8, 2022

@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.

@cr-lgl
Copy link

cr-lgl commented Nov 8, 2022

@Karsei Not works for me TnT

@woonghyun0412
Copy link

I checked solution with Gradle 7, it seems does not work... looking for other way

@lutics
Copy link

lutics commented Nov 8, 2022

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

@woonghyun0412
Copy link

@Karsei, I'm wondering is the issue occurs in Github Action only, or also occurs with local setting.

@Karsei
Copy link
Author

Karsei commented Nov 8, 2022

@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.

@yhware
Copy link

yhware commented Nov 8, 2022

For some reason, everyone commenting here is located in Korea including myself. Could this be a regional CDN issue with gradle plugin repo?

@calathea-ebc
Copy link

정말 한국에서만 그런거에요?

@Karsei
Copy link
Author

Karsei commented Nov 8, 2022

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.

https://search.maven.org/search?q=grolifant

@lutics
Copy link

lutics commented Nov 8, 2022

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/

@honeymon-enterprise
Copy link

honeymon-enterprise commented Nov 8, 2022

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/
image

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

@ihoneymon
Copy link

@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 와 관련된 이슈도 있었네요.
image

@arthur-yoon
Copy link

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:
#653

@arthur-yoon
Copy link

@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 와 관련된 이슈도 있었네요. image

ㅠㅠ 같은 문제 겪으셨나 봅니다.

@ihoneymon
Copy link

ihoneymon commented Nov 8, 2022

임시 조치방법은... 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"
}

@woonghyun0412
Copy link

이슈 공유해주셔서 정말 감사드립니다 ! 덕분에 빠르게 원인 파악할 수 있었습니다 🙏👍

@pkeller
Copy link

pkeller commented Nov 8, 2022

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.

@RicardoMonteiroSimoes
Copy link

I mean, the next step would just to pump the version to 0.16.2 which seems to me around without an issue?

@RicardoMonteiroSimoes
Copy link

There is even already a PR for it:
#653

So all a question of time until it's fixed. Can imagine that it's bothering a lot of people

@maxandersen
Copy link

anyone know a way to explicit override to use 0.16.2 while waiting for updated release?

@aalmiray
Copy link
Member

aalmiray commented Nov 8, 2022

Configure the following in settings.gradle

buildscript {
    repositories {
        mavenCentral()
        gradlePluginPortal()
    }
    dependencies {
        classpath 'org.ysb33r.gradle:grolifant:0.16.2'
    }
}

@rmanibus
Copy link

rmanibus commented Nov 8, 2022

@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

@maxandersen
Copy link

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)```

@dcoraboeuf
Copy link

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.

@RicardoMonteiroSimoes
Copy link

Apparently it's around now? My builds arent failing anymore.

@rmanibus
Copy link

rmanibus commented Nov 8, 2022

yes, seems up again

@Karsei
Copy link
Author

Karsei commented Nov 8, 2022

builds succeed now

@ysb33r
Copy link
Member

ysb33r commented Nov 8, 2022

We back-pushed 0.16.1 to MavenCentral, so that will keep it running until we can get a new version out.

@ysb33r ysb33r closed this as completed Nov 8, 2022
@ihoneymon
Copy link

ihoneymon commented Nov 8, 2022

@ysb33r Very thanks. :)

@Karsei
Copy link
Author

Karsei commented Nov 8, 2022

@ysb33r thank you!

@vincentj2
Copy link

@ysb33r thank you :)

@arthur-yoon
Copy link

@ysb33r thank you! 👍

@mojavelinux
Copy link
Member

mojavelinux commented Nov 9, 2022 via email

@dcoraboeuf
Copy link

Awesome 👌 Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests