code-disaster / steamworks4j

A thin Java wrapper to access the Steamworks API
https://code-disaster.github.io/steamworks4j/
MIT License
468 stars 64 forks source link

Gradle documentation is outdated #97

Closed Danjb1 closed 2 years ago

Danjb1 commented 3 years ago

The Gradle snippet on the getting started page yields a deprecation warning:

The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.3/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations at build_bew0iijlurjreacvoc91uz88j$_run_closure2.doCall(...\build.gradle:43) (Run with --stacktrace to get the full stack trace of this deprecation warning.)

I managed to fix this using:

apply plugin: 'java-library'

implementation "com.code-disaster.steamworks4j:steamworks4j:1.8.0"
implementation "com.code-disaster.steamworks4j:steamworks4j-server:1.8.0"

Related StackOverflow: https://stackoverflow.com/a/59630116/1624459

code-disaster commented 2 years ago

Updated, thanks.