Fork me on GitHub
#cljsrn
<
2022-03-17
>
Benjamin19:03:08

I tried making "AwesomeProject" work. How does it determine the gradle version? I do npx react-native run-android and get this:

Benjamin19:03:26

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See 

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/home/benj/repos/clojure/CljsRnDemo/node_modules/react-native-tcp-socket/android/build.gradle' line: 23

* What went wrong:
A problem occurred evaluating project ':react-native-tcp-socket'.
> Plugin with id 'maven' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
somehow maven plugin go removed with gradle 7 or something. Should I manually try to pick a gradle version that works?

Benjamin18:03:19

$ export JAVA_HOME=/lib/jvm/java-11-openjdk/ $ npx react-native run-android not sure if it's the same error, but with the complete "vanilla" AwesomeProject it works for me when I use java 11

Benjamin18:03:50

one of the steps here https://github.com/vouch-opensource/krell/wiki/Reagent-Tutorial changes something though, so the gradle maven error appears

zonotope11:03:25

I'm getting the exact same error following the Krell Reagent Tutorial. Have you been able to find a fix?

walterl23:03:29

I haven't (with Java 11) 😞

Benjamin18:03:26

@UJY23QLS1 @U3JRSLB1R tldr

yarn add react-native-tcp-socket
it works if the package is on this version:
"react-native-tcp-socket": "^5.6.0"
the Awesome template uses gradle 7 and the krell deps or something add a version of this tcp module that uses something deprecated ("maven plugin"). (broken, man rich ) Also make sure you use java 11 because this has bitten me a second time 😛

🙌 1