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

'runtime' and 'compile' configurations are deprecated and will be removed with Gradle 7.0 #26

Open
steffen-wilke opened this issue Mar 15, 2020 · 0 comments

Comments

@steffen-wilke
Copy link

From the official Gradle docs:

The usage of the compile and runtime configurations in the Java ecosystem plugins has been discouraged since Gradle 3.4.

also see: Upgrading from 5.6 and earlier

With Gradle 7.0 these configurations will be removed entirely. As I understand, they are the default configurations for this plugin.

Collection<String> configurations = ['compile', 'runtime']

I was able to upgrade the LITIENGINE project to 6.2.2 and get rid of any warnings while still keeping the functionality of this plugin by changing the configuration to

Working:

natives {
  configurations = ['runtimeClasspath']
  // ...
}

Currently suggested in the readme:

natives {
  configurations = ['compile', 'runtime']
 // ...
}

To properly support upcoming gradle versions, it would be great if this plugin could switch to the recommended configurations. (i.e. use runtimeClasspath and compileClasspath instead of runtime and compile. At the very least, this should be mentioned in the README.md.

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

1 participant