[ 
https://issues.apache.org/jira/browse/CASSANALYTICS-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17979876#comment-17979876
 ] 

Stefan Miklosovic commented on CASSANALYTICS-63:
------------------------------------------------

[~bbotella] [~frankgh]

Unfortunately this stopped to work after CASSANALYTICS-22 was merged just one 
commit after this.

I think that the  reason why is that gradle/common/publishing.gradle started to 
encapsulate all publishing logic but it left the change introduced in this 
patch in. But it is a little bit more complicated because this artifact is 
shadowed and gradle/common/publishing.gradle does not count with it.

{code}
> Task 
> :analytics-sidecar-vertx-client-shaded:generatePomFileForMavenPublication 
> FAILED

[Incubating] Problems report is available at: 
file:///home/fermat/dev/cassandra/cassandra-analytics/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task 
':analytics-sidecar-vertx-client-shaded:generatePomFileForMavenPublication'.
> Could not apply withXml() to generated POM
   > No signature of method: groovy.util.NodeList.appendNode() is applicable 
for argument types: (String) values: [dependency]

* 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.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with 
Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.

For more on this, please refer to 
https://docs.gradle.org/8.14/userguide/command_line_interface.html#sec:command_line_warnings
 in the Gradle documentation.

BUILD FAILED in 3s
12 actionable tasks: 4 executed, 8 up-to-date
{code}

> fix vertx client publishing 
> ----------------------------
>
>                 Key: CASSANALYTICS-63
>                 URL: https://issues.apache.org/jira/browse/CASSANALYTICS-63
>             Project: Apache Cassandra Analytics
>          Issue Type: Bug
>          Components: Build
>            Reporter: Jon Haddad
>            Assignee: Jon Haddad
>            Priority: Normal
>             Fix For: 1.0
>
>         Attachments: 63_fix_maven_dep.diff
>
>
> When trying to use the analytics library, I've run 
> {noformat}
> ./gradlew publishToMavenLocal
> {noformat}
> and included the dependency using this:
> {noformat}
> allprojects {
>     repositories {
>         mavenLocal()
>         mavenCentral()
>     }
> }
> dependencies {
>     
> implementation("org.apache.cassandra.spark:cassandra-analytics-core_spark3_2.12:1.0.0")
> }
> {noformat}
> and I get this error:
> {noformat}
> Could not resolve all files for configuration ':compileClasspath'.
>    > Could not find 
> org.apache.cassandra.spark:analytics-sidecar-vertx-client-shaded:1.0.0.
>      Searched in the following locations:
>        - 
> file:/Users/jhaddad/.m2/repository/org/apache/cassandra/spark/analytics-sidecar-vertx-client-shaded/1.0.0/analytics-sidecar-vertx-client-shaded-1.0.0.pom
>        - 
> https://repo.maven.apache.org/maven2/org/apache/cassandra/spark/analytics-sidecar-vertx-client-shaded/1.0.0/analytics-sidecar-vertx-client-shaded-1.0.0.pom
>      Required by:
>          root project : > 
> org.apache.cassandra.spark:cassandra-analytics-core_spark3_2.12:1.0.0
> {noformat}
> It looks like maven publishing isn't set up for this subproject.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to