J2V8 icon indicating copy to clipboard operation
J2V8 copied to clipboard

Usage instructions

Open Cretezy opened this issue 6 years ago • 8 comments

Would be really great to add in the README how to import the library using Gradle/Maven (most common use cases). I can't seem to make the aar on Maven Central work right now, so I'm using older (~v4) versions for each platforms.

Cretezy avatar Dec 30 '19 01:12 Cretezy

@Cretezy

I've just been using:

implementation 'com.eclipsesource.j2v8:j2v8:6.0.0@aar'

It seems to work fine, but I am having a spot of trouble with 6.0.0, as there was a quick fix to get exceptions flowing right. Is there going to be a 6.0.1, or is there an automatic Github Workflows build now somehow stashing updates somewhere?

gleno avatar Dec 30 '19 13:12 gleno

Doesn't seem to work for me. None of the classes are being resolved. Is there any debugging steps I can do?

Cretezy avatar Dec 30 '19 15:12 Cretezy

error: package com.eclipsesource.v8 does not exist
apply plugin: 'java'

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.eclipsesource.j2v8:j2v8:6.0.0@aar'
}

(stripped but still valid)

Cretezy avatar Dec 31 '19 03:12 Cretezy

@Cretezy Could you please create a separate and sample android project, then add J2V8 as a dependency? I did the same steps and it worked for me as expected and all classes are being resolved.

As far as I know, you should add the dependency into the module build.gradle not to the project build.gradle.

ahmadov avatar Jan 07 '20 12:01 ahmadov

Would be really great to add in the README how to import the library using Gradle/Maven (most common use cases). I can't seem to make the aar on Maven Central work right now, so I'm using older (~v4) versions for each platforms.

I'll update the README file as an instruction on how to add the J2V8 as a dependency.

ahmadov avatar Jan 07 '20 12:01 ahmadov

I'm not using an Android project, just Linux

Cretezy avatar Jan 07 '20 17:01 Cretezy

aar file is not for Linux but Android, that's why the classes are not being resolved in your case. Currently, the Linux and macOS artifacts are not published to Maven central.

ahmadov avatar Jan 07 '20 22:01 ahmadov

I see. aar files should be able to be read for not-Android, but in that case I'll wait. What is the ETA for at least Linux artifact on MC?

Cretezy avatar Jan 07 '20 22:01 Cretezy