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

Unable to build the opentelemetry-java project #2080

Closed
chandru-kumar opened this issue Nov 16, 2020 · 9 comments
Closed

Unable to build the opentelemetry-java project #2080

chandru-kumar opened this issue Nov 16, 2020 · 9 comments
Labels
Bug Something isn't working priority:p3 Lowest priority issues and bugs. release:required-for-ga Required for 1.0 GA release

Comments

@chandru-kumar
Copy link

I'm getting this error while building(executing gradlew.bat) - Could not find method release() for arguments [build_dfiyoporiz4savkbdijrduymk$_run_closure2@4f71c941] on root project 'opentelemetry-java' of type org.gradle.api.Project

Steps to reproduce
Download the java project and execute the gradlew.bat to reproduce the issue

What did you expect to see?
Build successful

What did you see instead?
Error
Gradle Build Error

Environment
Compiler: JAVA 1.8.0_241
OS: Windows 10

@chandru-kumar chandru-kumar added the Bug Something isn't working label Nov 16, 2020
@Oberon00
Copy link
Member

Oberon00 commented Nov 16, 2020

You need at least JDK 11 to build. 8 won't work. In your case it seems as if the build is also broken without the git repository which I don't think is expected.

@anuraaga
Copy link
Contributor

@ChandrewR Thanks for the report - interesting side effect of the nebula plugin that it is requiring a .git directory. For now, if you can clone from github and install Java 11 it should work ok, will look at fixing that.

@jkwatson
Copy link
Contributor

I think this has been fixed with #2082 and #2081. Can you verify, @ChandrewR ?

@jkwatson jkwatson added release:required-for-ga Required for 1.0 GA release priority:p3 Lowest priority issues and bugs. labels Nov 20, 2020
@chandru-kumar
Copy link
Author

chandru-kumar commented Nov 24, 2020

@anuraaga @Oberon00 So which components uses JAVA 11?. I see all JAVA 8 in README.md files...Can you pls confirm?

@anuraaga
Copy link
Contributor

Hi @ChandrewR - building this repository requires Java 11 as listed here

https://github.com/open-telemetry/opentelemetry-java/blob/master/CONTRIBUTING.md#requirements

The actual built artifacts can be used with a Java 8 app.

I'm trying to find Java 8 in README but can't - can you point me at it? If it's in the context of building this repository, it needs to be updated.

@chandru-kumar
Copy link
Author

Can individual artifacts like api, extensions etc be build with JAVA 8? It says JAVA 8 in README
https://github.com/open-telemetry/opentelemetry-java/tree/master/api
https://github.com/open-telemetry/opentelemetry-java/tree/master/extensions/trace-propagators

@anuraaga
Copy link
Contributor

Thanks @ChandrewR - it's indeed confusing to have mention of Java 8 all over the place. I have removed them in #2124 and instead clarify that published artifacts require Java 8+, and building requires looking at CONTRIBUTING.md, in the top-level README. Hopefully this prevents confusion going forward.

@jkwatson
Copy link
Contributor

jkwatson commented Dec 2, 2020

@ChandrewR can we close this? I believe that the documentation has been updated to be more accurate.

@bogdandrutu
Copy link
Member

No more action, closing since this is clear now (hopefully)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working priority:p3 Lowest priority issues and bugs. release:required-for-ga Required for 1.0 GA release
Projects
None yet
Development

No branches or pull requests

5 participants