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

Exclude :core:shadowJar task from extended #3597

Merged
merged 1 commit into from May 30, 2023
Merged

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented May 30, 2023

In teamcity is firstly executed a ./gradlew shadow in the root folder, which creates an apoc-5.8.1-core.jar,
where 5.8.1 is the current APOC Extended version.

But when StartupExtendedTest.checkCoreAndFullWithExtraDependenciesJars is executed,
this runs the :core:shadowJar task on the apoc-core folder (via https://github.com/neo4j/apoc/blob/dev/test-utils/src/main/java/apoc/util/TestContainerUtil.java#L133),
which create an apoc-5.8.0-core.jar (5.8.0: current APOC Core version),
this causes an error due to duplicated packages:

procedure `apoc.periodic.iterate` is already in use

In this pr I excluded :core:shadowJar, when running on the root folder,
since it is actually only needed when running integration tests with both core and extended.


FOLLOW UP:

Anyway, this causes packages with different versions (i.e. apoc-5.8.1-processor and apoc-5.8.0-processor, apoc-5.8.0-core and apoc-5.8.1 in core folder, apoc-5.8.0 and apoc-5.8 .1 in common, etc..),
so I think the ideal solution would be to force core, processor and common to accept the current core version when we run /.gradle shadow in the root folder (5.8.0 in this case),
but to do this it would also be necessary to change the APOC Core build.gradle , so I created a follow-up card: id OIvGQTfi

@conker84 conker84 merged commit 9b9eb39 into 5.8 May 30, 2023
4 checks passed
@conker84 conker84 deleted the exclude-core-shadowJar branch May 30, 2023 11:23
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

Successfully merging this pull request may close these issues.

None yet

2 participants