X Tutup
Skip to content

Use api for marking transitive compile+runtime dependencies#699

Merged
jabrena merged 2 commits intoev3dev-lang-java:masterfrom
JakubVanek:bugfix/transitive_dependencies
Dec 2, 2019
Merged

Use api for marking transitive compile+runtime dependencies#699
jabrena merged 2 commits intoev3dev-lang-java:masterfrom
JakubVanek:bugfix/transitive_dependencies

Conversation

@JakubVanek
Copy link
Copy Markdown
Contributor

We have previously switched from compile to implementation.
This had an unexpected consequence, however - implementation
does not make dependencies transitive. The quick fix is to
switch back to compile, which is marked as deprecated, however.

As an alternative, there exists an api label in the java-library
Gradle plugin. According to https://stackoverflow.com/a/53726023 ,
this plugin extends the Java plugin and provides functionality
for Java libraries, which is exactly what is needed.

We have previously switched from `compile` to `implementation`.
This had an unexpected consequence, however - `implementation`
does not make dependencies transitive. The quick fix is to
switch back to `compile`, which is marked as deprecated, however.

As an alternative, there exists an `api` label in the `java-library`
Gradle plugin. According to https://stackoverflow.com/a/53726023 ,
this plugin extends the Java plugin and provides functionality
for Java libraries, which is exactly what is needed.
@jabrena
Copy link
Copy Markdown
Member

jabrena commented Dec 2, 2019

Upgrade the version to the next patch version:

version = '2.6.2-SNAPSHOT'

@jabrena jabrena merged commit 3ed7f9b into ev3dev-lang-java:master Dec 2, 2019
@JakubVanek JakubVanek deleted the bugfix/transitive_dependencies branch December 2, 2019 20:38
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

Successfully merging this pull request may close these issues.

2 participants

X Tutup