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

issue loading the project in Intellij #133

Open
kwonglau opened this issue Jan 15, 2023 · 4 comments
Open

issue loading the project in Intellij #133

kwonglau opened this issue Jan 15, 2023 · 4 comments

Comments

@kwonglau
Copy link

Build file '/eventuate-foundation/eventuate-common-1/build.gradle' line: 21

A problem occurred evaluating root project 'eventuate-common'.

Failed to apply plugin 'io.eventuate.plugins.gradle.publish.EventuatePublish'.
Could not create task ':publishEventuateArtifacts'.
> Could not create task of type 'PublishEventuateArtifactsTask'.
> Don't know what to do with branch:

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
@kwonglau
Copy link
Author

when comment out

apply plugin: "io.eventuate.plugins.gradle.publish.EventuatePublish" on line 21 and

test it with the following in allprojects block, it works and I'm able to load the project in IDE and build it.

allprojects {
    group = "io.eventuate.common"

    if (!project.name.endsWith("-bom")) {
        apply plugin: 'java'
        project.java {
            withJavadocJar()
            withSourcesJar()
        }
    } else {
        apply plugin: 'java-platform'
    }
}

@kwonglau
Copy link
Author

@cer
Copy link
Contributor

cer commented Jan 15, 2023

Don't know what to do with branch:

This message (which can be improved) is the problem.

The EventuatePublish plugin doesn't recognize the branch that you are on.

./gradlew testClasses --stacktrace would reveal the location.

@kwonglau
Copy link
Author

gotcha

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

2 participants