Comments (7)
👍 Upgrading to Gradle 4.6 resolved the issue. Thanks! Marking issue as Closed.
( Note: I did run into another issue with the XML renderer, but will file a separate ticket for that. )
from gradle-license-report.
Hm, that's unfortunate. Can you post your licenseReport
configuration of your gradle-file?
I tested the latest version, and runtime
works for me.
Only problem can be, that runtime
might not be available on your project. Can you execute
./gradlew dependencies
to see if the configuration runtime
is available? Actually, the 0.7 release made a check a little more restrictive, to avoid specifying configurations, which are not available. This is maybe the case here.
from gradle-license-report.
There's no licenseReport
section in my Gradle file.
Here's the output from gradle dependencies
(with some identifiers masked):
dependencies.txt
Notice that runtime
does show up:
runtime - Runtime dependencies for source set 'main'.
+--- com.*****.apex:*****client:1.3.0
| \--- com.*****.apex:web:3.4.0 -> 3.19.0
| +--- commons-codec:commons-codec:1.10
| +--- com.*****.apex:auth:3.0.0
from gradle-license-report.
Thanks for the report. It seems that the PR broke support for older versions of Gradle. Versions from 3.3 seems to work fine. Version below, have problems.
You use version 2.13. Upgrading to version 3.3 or later will solve your problem.
@jk1 Do you tend to be backward compatible with those older versions (Release Date of 3.3. was Jan 03, 2017), or do you prefer adding a minimum required version to the documentation?
I personally like to motivate people to be up to date with their build tool, in order to use all the plugins and feature, so I tend to break compatibility with versions lower than 3.3.
@znerd Is upgrading to a new version an option?
from gradle-license-report.
I personally like to motivate people to be up to date with their build tool, in order to use all the plugins and feature, so I tend to break compatibility with versions lower than 3.3.
So am I. We'd better check Gradle version in Plugin#apply(...) though and print out an explanatory message to avoid confusion. Something like
private void assertCompatibleGradleVersion() {
def current = GradleVersion.current().version.split("\\.")
def major = current[0].toInteger()
if (major < 4) {
throw new GradleException("License Report Plugin requires Gradle 4.0. ${GradleVersion.current()} detected.")
}
}
will do.
from gradle-license-report.
@guenhter Thanks for the swift analysis.
I fully understand it makes sense to stay up-to-date with regards to the current build tool version.
from gradle-license-report.
Even though upgrading solved the Problem, #62 added a version check which gives a proper message when using this plugin with an outdated gradle-version.
from gradle-license-report.
Related Issues (20)
- No way to Normalize a missing license
- Parent Pom licenses are included even if child pom defines a different license HOT 6
- Release 2.0 missing on releases page HOT 3
- Please make comptible with java 8 again HOT 5
- Root dependency unknowen for Kotlin multiplatform dependencies HOT 3
- `CacheableReportTask` is always up to date after dependency changes when plugin is configured to analyse all configurations
- No license detected for `org.jetbrains.kotlinx:kotlinx-coroutines-core` HOT 4
- Kotlin multiplatform module resolving exceptions HOT 7
- Output dir uses different base pathes
- Multiple reports in the same build script
- File dependencies are not scanned
- Licensecheck will not fail when one of multiple licenses in a dependency are not allowed HOT 1
- Fail if multiple transformation rules or bundles match the same license HOT 1
- Licenses from license files are not considered in HTML reports HOT 4
- It would be nice if the inventory report had a "multiple licenses" section HOT 1
- Filterspec for configurations
- Report does not rerun after changing renderer options
- Move overrides functionality up the architecture
- Information about configurations in inventory report HOT 1
- Accessing `Task.project` at execution time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-license-report.