eventuate-foundation / eventuate-common

Other
10 stars 20 forks source link

issue loading the project in Intellij #133

Open kwonglau opened 1 year ago

kwonglau commented 1 year ago

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:

kwonglau commented 1 year ago

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 commented 1 year ago

please check

https://github.com/eventuate-foundation/eventuate-plugins-gradle/pull/15

cer commented 1 year ago

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 commented 1 year ago

gotcha