wpilibsuite / gradle-jni

Gradle plugin for ease of creating JNI libraries.
14 stars 5 forks source link

Plugin was not found. #18

Open harideva16 opened 3 years ago

harideva16 commented 3 years ago
Build file 'C:\Users\haridev\Documents\example\build.gradle' line: 4

Plugin [id: 'edu.wpi.first.GradleJni', version: '0.1.6'] was not found in any of the following sources:

plugin

How can I solve this ?

ThadHouse commented 3 years ago

The readme has not been updated in a while (It's something I need to do). However, the example in the examples folder is up to date and should work.

harideva16 commented 3 years ago

The readme has not been updated in a while (It's something I need to do). However, the example in the examples folder is up to date and should work.

I tried the example in example folder but the same error occurs.

ThadHouse commented 3 years ago

Are you using the newest copy of the example folder? The newest example folder is using version 1.0.0. Anything using an 0.x.x version is out of date and should be updated. I just did a fresh clone on a new system of the example folder and it built.

harideva16 commented 3 years ago

I want to create a JPackage for windows , linux and mac.

Will this plugin create native libs for all the os ?

ThadHouse commented 3 years ago

As long as you run the build on each platform it would. Cross OS builds are not supported by gradle's native setup, which handles most of the native building. This plugin is just a thin extension onto gradle's native toolset to configure it right for JNI.

harideva16 commented 3 years ago

I have three devices with windows , linux and mac operating systems.

If I build JPackage wtih this plugin on each os .

Will this plugin create native libs for each os ?

ThadHouse commented 3 years ago

Yes, it would.

harideva16 commented 3 years ago

Please , Give a sample project for this plugin.

ThadHouse commented 3 years ago

The example is the only sample I currently have that isn't dependent on our other internal plugins to handle more complicated building scenarios.

harideva16 commented 3 years ago
Build file 'C:\Users\haridev\Documents\example\build.gradle' line: 4

Plugin [id: 'edu.wpi.first.GradleJni', version: '0.1.6'] was not found in any of the following sources:

plugin

How can I solve this ?

How can I solve this error ?

ThadHouse commented 3 years ago

If youre getting that error you must be using an old copy of the example. The current example uses 1.0.0 as the plugin version. So if its trying to load 0.1.6, youre trying to load an old version that won't work.

harideva16 commented 3 years ago

I also tried the new version 0.1.6 . But , it not worked.

ThadHouse commented 3 years ago

The new version is not 0.1.6. The current version is 1.0.0.

harideva16 commented 3 years ago

I tried both 0.1.6 and 1.0.0 . But , not worked.

ThadHouse commented 3 years ago

So whats the error you get with 1.0.0?

harideva16 commented 3 years ago
Build file 'C:\Users\haridev\Documents\example\build.gradle' line: 4

Plugin [id: 'edu.wpi.first.GradleJni', version: '0.1.6'] was not found in any of the following sources:

plugin

How can I solve this ?

same error.

ThadHouse commented 3 years ago

It definitely won't be the same error. That error log is showing its trying to run 0.1.6, which will not work, and wouldn't be the error if 1.0.0 is used. If you clone this repo, go into the examples folder, and run ./gradlew build does that work. Try building on the command line before trying to get intellij working.

harideva16 commented 3 years ago

1

same error

ThadHouse commented 3 years ago

Oh. I thought I had published 1.0.0, but apparently I hadn't. We're still a WIP upgrading to 1.0.0. As a workaround for now, go to the root directory and run ./gradlew publishToMavenLocal

harideva16 commented 3 years ago

ter

same error.