Skip to content

Conversation

@jakelandis
Copy link
Contributor

As of elastic/elasticsearch#45677 build tools
now uses a function that requires javaHome to be a File type.

This commit updates the JavaHome property to be a File type. This
commit also bumps the latest supported version of build-tools (8.0.0-SNAPSHOT
is not supported yet).

@jakelandis jakelandis requested a review from jbaiera August 23, 2019 18:50

// Provided/Optional Dependencies
compile 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is necessary, else the build will fail. (it is also present in 7.x)

@jakelandis
Copy link
Contributor Author

jakelandis commented Aug 23, 2019

This is what the failure this fixes looks like

FAILURE: Build failed with an exception.

* What went wrong:
Failed to notify build listener.
> No signature of method: static org.gradle.internal.jvm.Jvm.forHome() is applicable for argument types: (java.lang.String) values: [/Users/jakelandis/workspace/java/jdk-8-update-211/Contents/Home]
  Possible solutions: forHome(java.io.File)
> No signature of method: static org.gradle.internal.jvm.Jvm.forHome() is applicable for argument types: (java.lang.String) values: [/Users/jakelandis/workspace/java/jdk-8-update-211/Contents/Home]
  Possible solutions: forHome(java.io.File)
> No signature of method: static org.gradle.internal.jvm.Jvm.forHome() is applicable for argument types: (java.lang.String) values: [/Users/jakelandis/workspace/java/jdk-8-update-211/Contents/Home]
  Possible solutions: forHome(java.io.File)
> No signature of method: static org.gradle.internal.jvm.Jvm.forHome() is applicable for argument types: (java.lang.String) values: [/Users/jakelandis/workspace/java/jdk-8-update-211/Contents/Home]
  Possible solutions: forHome(java.io.File)
> No signature of method: static org.gradle.internal.jvm.Jvm.forHome() is applicable for argument types: (java.lang.String) values: [/Users/jakelandis/workspace/java/jdk-8-update-211/Contents/Home]
  Possible solutions: forHome(java.io.File)
> No signature of method: static org.gradle.internal.jvm.Jvm.forHome() is applicable for argument types: (java.lang.String) values: [/Users/jakelandis/workspace/java/jdk-8-update-211/Contents/Home]
  Possible solutions: forHome(java.io.File)
> No signature of method: static org.gradle.internal.jvm.Jvm.forHome() is applicable for argument types: (java.lang.String) values: [/Users/jakelandis/workspace/java/jdk-8-update-211/Contents/Home]
  Possible solutions: forHome(java.io.File)

Copy link
Member

@jbaiera jbaiera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

elasticsearch = 8.0.0
lucene = 8.1.0-snapshot-e460356abe
build-tools = 7.1.1
build-tools = 7.4.0-SNAPSHOT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bumping this up. We're pretty close to being able to run against the master build tools here soon enough.

@jakelandis jakelandis merged commit 8d4bdb8 into elastic:master Aug 23, 2019
@jakelandis jakelandis deleted the javaHome_file_type branch August 23, 2019 18:58
jakelandis added a commit that referenced this pull request Aug 23, 2019
As of elastic/elasticsearch#45677 build tools
now uses a function that requires JavaHome to be a File type.

This commit updates the JavaHome property to be a File type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants