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

Plugin was not found. #18

Open
harideva16 opened this issue Aug 13, 2021 · 20 comments
Open

Plugin was not found. #18

harideva16 opened this issue Aug 13, 2021 · 20 comments

Comments

@harideva16
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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

Will this plugin create native libs for all the os ?

@ThadHouse
Copy link
Member

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
Copy link
Author

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
Copy link
Member

Yes, it would.

@harideva16
Copy link
Author

Please , Give a sample project for this plugin.

@ThadHouse
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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

@ThadHouse
Copy link
Member

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

@harideva16
Copy link
Author

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

@ThadHouse
Copy link
Member

So whats the error you get with 1.0.0?

@harideva16
Copy link
Author

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
Copy link
Member

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
Copy link
Author

1

same error

@ThadHouse
Copy link
Member

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
Copy link
Author

ter

same error.

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

No branches or pull requests

2 participants