You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@maxandersen , the scenario is that I'm developing a new SNAPSHOT version of a JAR file I will eventually publish to Maven Central.
If App.java has this SNAPSHOT jar defined as a dependency, then jbang run App.java automatically retrieves the JAR from the local maven repository.
When I create a build.gradle file from App.java, then mavenLocal() is not defined by default, so gradle build fails to compile App.java. If I add localMaven() to the build.gradle file manually, then the problem is resolved.
In order to be behaviourly compatible with 'jbang run ...' , build.gradle should define mavenLocal() as a repository.
Describe the bug
jbang export gradle App.java
does not include mavenLocal() as a repository in the generated build.gradle fileJBang version
0.125.0
Additional context
The text was updated successfully, but these errors were encountered: