Skip to content

Commit 81da50f

Browse files
authored
Fix license for vendored dagger2 (#7417)
Fix the third party license for `vendor`ed dagger2 The vendor plugin namespaces and bakes in dagger2 into the distributed artifact. So we need to include its license file Verified by building and inspecting the aar files to see the license is there
1 parent 9364dc3 commit 81da50f

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

firebase-functions/firebase-functions.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
1616

1717
plugins {
18+
id("LicenseResolverPlugin")
1819
id("firebase-library")
1920
id("kotlin-android")
2021
id("firebase-vendor")
@@ -61,6 +62,8 @@ kotlin {
6162
explicitApi()
6263
}
6364

65+
thirdPartyLicenses { add("dagger2", "${projectDir}/third_party/dagger2/LICENSE") }
66+
6467
dependencies {
6568
javadocClasspath("org.codehaus.mojo:animal-sniffer-annotations:1.21")
6669
javadocClasspath(libs.autovalue.annotations)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2012 The Dagger Authors
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

firebase-sessions/firebase-sessions.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2020

2121
plugins {
22+
id("LicenseResolverPlugin")
2223
id("firebase-library")
2324
id("firebase-vendor")
2425
id("kotlin-android")
@@ -66,6 +67,8 @@ kotlin {
6667
compilerOptions { jvmTarget = JvmTarget.JVM_1_8 }
6768
}
6869

70+
thirdPartyLicenses { add("dagger2", "${projectDir}/third_party/dagger2/LICENSE") }
71+
6972
dependencies {
7073
api(libs.firebase.common)
7174

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2012 The Dagger Authors
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

0 commit comments

Comments
 (0)