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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3746e4cddde0edf382e8821057edf8e850e1c3e7f919ae7ffe8c0a0d2e9673b6
4
- data.tar.gz: 3bfd9b9455a01be274fec72b4594679845c0e43ea2296690b816edc602e92978
3
+ metadata.gz: f4589c212dd085a4f62711a077b50ec04ee1ca398a1c4b39e29644caebd4795e
4
+ data.tar.gz: e2366f102dec2839fa56e3050ceedcba249ecc9fb8012a2cf5074356918a20f4
5
5
  SHA512:
6
- metadata.gz: 3cefdf63dab57c1710903687b8eb4afb8538a8e95f2c7a911d156f44ad221bc47fb127519a72bd76d833f13bbd803c9b77b253b8012964fcd9316e3a73fc1adf
7
- data.tar.gz: 7af786369bda501fd1196dadf82427d0ba83cb37491aa231ed3b3717b9df30849af017ff0e0450eaeb5f4d24933a1ae1f3d4757821d73e6c6d757289f5555c51
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.1...HEAD
692
+ [Unreleased]: https://github.com/github/licensed/compare/4.0.2...HEAD
@@ -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}"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Licensed
3
- VERSION = "4.0.1".freeze
3
+ VERSION = "4.0.2".freeze
4
4
 
5
5
  def self.previous_major_versions
6
6
  major_version = Gem::Version.new(Licensed::VERSION).segments.first
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee