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

Incorrect version in maven pom #3

Closed
gavlyukovskiy opened this issue Dec 22, 2022 · 10 comments
Closed

Incorrect version in maven pom #3

gavlyukovskiy opened this issue Dec 22, 2022 · 10 comments
Assignees
Labels
bug Something isn't working build-system

Comments

@gavlyukovskiy
Copy link

When trying to import ap-loader into gradle project

implementation("me.bechberger:ap-loader:2.9-all")

I'm getting

Execution failed for task ':project:compileKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':project:compileKotlin'.
   > Could not resolve all files for configuration ':project:compileClasspath'.
      > Could not resolve me.bechberger:ap-loader:2.9-all.
        Required by:
            project :project
         > Could not resolve me.bechberger:ap-loader:2.9-all.
            > inconsistent module metadata found. Descriptor: me.bechberger:ap-loader:2.8.3-all-SNAPSHOT Errors: bad version: expected='2.9-all' found='2.8.3-all-SNAPSHOT'

which seems to be because the pom has version 2.8.3-all-SNAPSHOT
https://repo1.maven.org/maven2/me/bechberger/ap-loader/2.9-all/ap-loader-2.9-all.pom

@parttimenerd
Copy link
Member

Thanks for your bug report, I have a vague idea of how this came to be. I'll try to publish an updated version next week. You could use the snapshot version of 2.8.3 till then.

@parttimenerd parttimenerd self-assigned this Dec 23, 2022
@parttimenerd parttimenerd added bug Something isn't working build-system labels Dec 23, 2022
@parttimenerd
Copy link
Member

I fixed the issue, please try using ap-loader again tomorrow, after the change is propagated to maven central.

<dependency>
  <groupId>me.bechberger</groupId>
  <artifactId>ap-loader</artifactId>
  <version>2.9-1-all</version>
</dependency>

@dpsoft
Copy link

dpsoft commented Dec 29, 2022

Hi All! When trying to import ap-loader using the 2.9-1-all version into gradle project:

implementation("me.bechberger:ap-loader:2.9-1-all")

I'm getting this structure in the jar:

image

And this using 2.8.3-all-SNAPSHOT version:

image

this is ok?

@parttimenerd
Copy link
Member

This should look different. I'm taking a look at it tomorrow. I'm sorry for the inconvenience.

@parttimenerd parttimenerd reopened this Dec 29, 2022
@parttimenerd
Copy link
Member

I'm currently working on the issue, sorry for the delay.

The built JARs themself look right, I'll have to investigate why there are problems publishing it.

@parttimenerd
Copy link
Member

I can reproduce the problem: The published JARs differ from the built JARs (which I publish to the GitHub releases page).

parttimenerd added a commit that referenced this issue Jan 11, 2023
Fix the fix for #3
@parttimenerd
Copy link
Member

I fixed the issue (again), hopefully, it works now. The artifacts are in the snapshot repository and should appear on maven central in the next few hours:

<dependency>
  <groupId>me.bechberger</groupId>
  <artifactId>ap-loader</artifactId>
  <version>2.9-2-all</version>
</dependency>

@parttimenerd
Copy link
Member

@dpsoft could you confirm that it is fixed?

@dpsoft
Copy link

dpsoft commented Jan 18, 2023

Yes, thanks!

@parttimenerd
Copy link
Member

Good, then I'll close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build-system
Projects
None yet
Development

No branches or pull requests

3 participants