Coder Social home page Coder Social logo

Comments (31)

gbenroscience avatar gbenroscience commented on August 25, 2024 3

haha :)

I set it up to be Java 11 already anyway.

but not in the pom which is in the repository:

ParserNG/pom.xml

Lines 115 to 116 in a12f614

<maven.compiler.source>12</maven.compiler.source>
<maven.compiler.target>12</maven.compiler.target>

Can you please comment here when you are able to see it on maven?
If I notice it first, I will do so and close the issue, also.

Yes of course!

Apologies. I didnt push after the change.

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

Hi @victornoel, how are you using this library, please?
In a desktop app? in a mobile app?

Thanks!

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

Meanwhile check this out.
You can retrieve the android clone of this library by doing the below:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Also add to your app's build.gradle file, under your dependencies, add:

dependencies {
	        implementation 'com.github.gbenroscience:parserng-android:0.1.1'
		
	}

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience I'm using it as a typical maven dependency for server app. So I guess we can say desktop app.

I tried unsuccessfully using it with jitpack but didn't use the android artefact, that must by why it didn't work. I will try again and report back here :)

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience I'm not sure why but it didn't work, maven is telling me it can't download the artefact from jibpack.io :/ I followed the configuration here: https://jitpack.io/#gbenroscience/parserng-android/0.1.1

from parserng.

victornoel avatar victornoel commented on August 25, 2024

Ah, I know why it didn't work, because com.github.gbenroscience:parserng-android:0.1.1 does not provide a jar, only an aar: https://jitpack.io/com/github/gbenroscience/parserng-android/master-4354ddd23a-1/build.log.

I need to use it as a jar :)

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

Let me know if you have resolved the issue, or not; so I can close this.

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience as I said above, I didn't no :) I need a jar and there are no jar deployed either to maven central or jitpack.io.

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

@victornoel , so just to be clear, the gradle build works , but what you need is a jar dist, right?

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

@victornoel, so I have changed the project structure(should have done that a while back) to make this a pure java library. The parserng-android repo will serve for android devs.

The jar which you seek is in the dist folder of this library.
Let me know if you have any more needs.

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience sorry for the misunderstanding but I just want to be able to add the dependency to maven/gradle without building the jar myself or downloading it manually from the repository.

The correct way to do things is:

  • provide a grade way to build the repository
  • let jibpack.io build it and serve it

This is how you did it for parserng-android, so it would be great if it was the case here too if possible :)

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

Okay then.
I will look into it. A bit busy now, though

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience no worry, when you can is ok :) thanks again

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

@victornoel , the library is now available on maven central.

The README will be updated accordingly.

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience I don't think it is on maven central, see https://search.maven.org/artifact/com.github.gbenroscience/parser-ng

But I believe that now it should be available via jetpack.io: https://jitpack.io/#gbenroscience/ParserNG, so using the following coordinates:

gradle: com.github.gbenroscience:parserng:master-SNAPSHOT
maven:

        <dependency>
            <groupId>com.github.gbenroscience</groupId>
            <artifactId>parserng</artifactId>
            <version>master-SNAPSHOT</version>
        </dependency>

If you want it to be available via the specific version number, you need to add a tag with the version number (exactly like you did in parserng-android I believe).
If you add the tag 0.1.0, your artefact will be available via com.github.gbenroscience:ParserNG:0.1.0 on jitpack.io :)

FYI deploying on maven central is a manual operation (or automatized via continuous integration) that you have to do yourself as a developer. But I don't think it is needed if it's available via jitpack.io anyway :)

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience so good news, I can use it as a normal dependency to my project, it's cool :)

Bad news: it's compiled for Java 12 while the latest LTS is Java 11 and the one I am using, so I cannot use it in practice.
I believe it would be best to use java 11 here: https://github.com/gbenroscience/ParserNG/blob/master/pom.xml#L115-L116

Also, for the record, it is bad practice to commit the target repository to git :)

Thanks again!!

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

So it works now with maven central right?
That's cool.

I will see to your other complaints.
I am taking time off my other responsibilities to attend to this; so bear with me.

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

@gbenroscience I don't think it is on maven central, see https://search.maven.org/artifact/com.github.gbenroscience/parser-ng

But I believe that now it should be available via jetpack.io: https://jitpack.io/#gbenroscience/ParserNG, so using the following coordinates:

gradle: com.github.gbenroscience:parserng:master-SNAPSHOT
maven:

        <dependency>
            <groupId>com.github.gbenroscience</groupId>
            <artifactId>parserng</artifactId>
            <version>master-SNAPSHOT</version>
        </dependency>

If you want it to be available via the specific version number, you need to add a tag with the version number (exactly like you did in parserng-android I believe).
If you add the tag 0.1.0, your artefact will be available via com.github.gbenroscience:ParserNG:0.1.0 on jitpack.io :)

FYI deploying on maven central is a manual operation (or automatized via continuous integration) that you have to do yourself as a developer. But I don't think it is needed if it's available via jitpack.io anyway :)

I had done all this already as at when you posted this reply.
Thanks

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

@gbenroscience so good news, I can use it as a normal dependency to my project, it's cool :)

Bad news: it's compiled for Java 12 while the latest LTS is Java 11 and the one I am using, so I cannot use it in practice.
I believe it would be best to use java 11 here: https://github.com/gbenroscience/ParserNG/blob/master/pom.xml#L115-L116

Also, for the record, it is bad practice to commit the target repository to git :)

Thanks again!!

Thanks a lot.
I have fixed this

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

So it works now with maven central right?
That's cool.

I will see to your other complaints.
I am taking time off my other responsibilities to attend to this; so bear with me.

It is now compiled for Java 11.
Let me know if there is any other thing.

from parserng.

victornoel avatar victornoel commented on August 25, 2024

So it works now with maven central right?

No, it works with jitpack.io. Maven central is the official repository (https://search.maven.org/) in case it's not clear what I am talking about :)

But yes, it works with Maven the tool (and also with gradle and other maven-compliant tools)

It is now compiled for Java 11.

@gbenroscience actually, it's not, you need to change the values in the pom (here: https://github.com/gbenroscience/ParserNG/blob/master/pom.xml#L115-L116), and the compilation is done by jitpack.io automatically.

I had done all this already as at when you posted this reply.

Are you sure? Because it's still not on maven central (https://search.maven.org/artifact/com.github.gbenroscience/parser-ng) and there are no tags in the repository (https://github.com/gbenroscience/ParserNG/tags)

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

Really? are you using this?

    <dependency>
        <groupId>com.github.gbenroscience</groupId>
        <artifactId>parser-ng</artifactId>
        <version>0.1.0</version>
    </dependency>

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience yes, the link I gave above (https://search.maven.org/artifact/com.github.gbenroscience/parser-ng) shows you what is available on maven central for this groupId and artifactId.

Can I ask what command you did run to deploy it there?

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

mvn -e clean deploy.

I already pushed to sonatype.
The push was successful.

Sorry they have to activate the sync process since its a first time push to maven, I believe.
I have notified them on the issues ticket at https://issues.sonatype.org/

Thanks a lot

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience I better understand, glad you found the solution and thank you very much for your patience :)

I still think it would be better to setup the pom to be Java 11 compatible to ensure everybody can use it. Or even Java 8 maybe?

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

Java 8? lol... I set it up to be Java 11 already anyway.
If the repo gets more users and we get more such requests, of course I will.
I would be able to settle down to correct any issues that might arise from the change, which I expect to be minimal anyway.

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

Can you please comment here when you are able to see it on maven?
If I notice it first, I will do so and close the issue, also.

from parserng.

victornoel avatar victornoel commented on August 25, 2024

haha :)

I set it up to be Java 11 already anyway.

but not in the pom which is in the repository:

ParserNG/pom.xml

Lines 115 to 116 in a12f614

<maven.compiler.source>12</maven.compiler.source>
<maven.compiler.target>12</maven.compiler.target>

Can you please comment here when you are able to see it on maven?
If I notice it first, I will do so and close the issue, also.

Yes of course!

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

Meanwhile in other good news, I set the compile target to 1.8, to see how much work would need to be done. Evidently, I used a lot of base language features at the time, so nothing broke.

I will push the changes, both to Git and Maven later on.

from parserng.

gbenroscience avatar gbenroscience commented on August 25, 2024

So, it is finally available.

Please check: here

from parserng.

victornoel avatar victornoel commented on August 25, 2024

@gbenroscience thank you, and also again thank you for your patience ^^

from parserng.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.