licensed 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/docs/sources/gradle.md +11 -1
- data/lib/licensed/sources/gradle.rb +8 -1
- data/lib/licensed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4589c212dd085a4f62711a077b50ec04ee1ca398a1c4b39e29644caebd4795e
|
4
|
+
data.tar.gz: e2366f102dec2839fa56e3050ceedcba249ecc9fb8012a2cf5074356918a20f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c40137a979df559cb8b3adeaf4645c453102b96b7b177fcf391276eb0b93154e10be855325021c231ea1ebd27fca55d43d858ba77b73051a07f1f783d122eeba
|
7
|
+
data.tar.gz: 856405d0edbd8dc18d29705004e361a3307fb52efbea60372d17adb941f0a8ebccc977548bae136b16e3956607354b1ab8a3a646fef44344d942e44b83be23f7
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## 4.0.2
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- The path to a gradlew executable can be configured when enumerating gradle dependencies (:tada: @LouisBoudreau https://github.com/github/licensed/pull/610)
|
14
|
+
|
9
15
|
## 4.0.1
|
10
16
|
|
11
17
|
### Fixed
|
@@ -683,4 +689,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
683
689
|
|
684
690
|
Initial release :tada:
|
685
691
|
|
686
|
-
[Unreleased]: https://github.com/github/licensed/compare/4.0.
|
692
|
+
[Unreleased]: https://github.com/github/licensed/compare/4.0.2...HEAD
|
data/docs/sources/gradle.md
CHANGED
@@ -14,6 +14,7 @@ gradle:
|
|
14
14
|
- runtime
|
15
15
|
- runtimeClassPath
|
16
16
|
```
|
17
|
+
|
17
18
|
### Multi-build projects
|
18
19
|
|
19
20
|
To run `licensed` for specific projects in a [multi-build project](https://docs.gradle.org/current/userguide/multi_project_builds.html) you must specify the [apps](../configuration/application_source.md) configuration key.
|
@@ -21,4 +22,13 @@ To run `licensed` for specific projects in a [multi-build project](https://docs.
|
|
21
22
|
```yml
|
22
23
|
apps:
|
23
24
|
- source_path: ./path/to/subproject
|
24
|
-
```
|
25
|
+
```
|
26
|
+
|
27
|
+
### Gradlew
|
28
|
+
|
29
|
+
The `gradle.gradlew` property is used to determine where the `gradlew` executable is. The default location the [configuration root](../configuration/configuration_root.md).
|
30
|
+
|
31
|
+
```yml
|
32
|
+
gradle:
|
33
|
+
gradlew: path/from/root/to/gradle/gradlew
|
34
|
+
```
|
@@ -66,7 +66,6 @@ module Licensed
|
|
66
66
|
return @executable if defined?(@executable)
|
67
67
|
|
68
68
|
@executable = begin
|
69
|
-
gradlew = File.join(config.pwd, "gradlew")
|
70
69
|
return gradlew if File.executable?(gradlew)
|
71
70
|
|
72
71
|
"gradle" if Licensed::Shell.tool_available?("gradle")
|
@@ -89,6 +88,14 @@ module Licensed
|
|
89
88
|
end
|
90
89
|
end
|
91
90
|
|
91
|
+
# Returns the path to the Gradle wrapper.
|
92
|
+
def gradlew
|
93
|
+
@gradlew ||= begin
|
94
|
+
gradlew = config.dig("gradle", "gradlew")
|
95
|
+
config.root.join(gradlew || "gradlew").to_s
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
92
99
|
# Returns a key to uniquely identify a name and version in the obtained CSV content
|
93
100
|
def csv_key(name:, version:)
|
94
101
|
"#{name}-#{version}"
|
data/lib/licensed/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: licensed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: licensee
|