Skip to content

Commit dafabea

Browse files
authored
Merge pull request #723 from AppDevNext/AddLicense
Add license in published artifacts
2 parents 461d034 + 9cd5612 commit dafabea

4 files changed

Lines changed: 41 additions & 5 deletions

File tree

LogcatCoreLib/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@ publishing {
3434
publications {
3535
release(MavenPublication) {
3636
afterEvaluate {
37-
from components.release
37+
from components.release {
38+
pom {
39+
licenses {
40+
license {
41+
name = "Apache License Version 2.0"
42+
url = "https://github.com/AppDevNext/Logcat/blob/master/LICENSE"
43+
}
44+
}
45+
}
46+
}
3847
}
3948
}
4049
}

LogcatCoreUI/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,16 @@ publishing {
3838
publications {
3939
release(MavenPublication) {
4040
afterEvaluate {
41-
from components.release
41+
from components.release {
42+
pom {
43+
licenses {
44+
license {
45+
name = "Apache License Version 2.0"
46+
url = "https://github.com/AppDevNext/Logcat/blob/master/LICENSE"
47+
}
48+
}
49+
}
50+
}
4251
}
4352
}
4453
}

LogcatCountlyLib/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ publishing {
2727
publications {
2828
release(MavenPublication) {
2929
afterEvaluate {
30-
from components.release
30+
from components.release {
31+
pom {
32+
licenses {
33+
license {
34+
name = "Apache License Version 2.0"
35+
url = "https://github.com/AppDevNext/Logcat/blob/master/LICENSE"
36+
}
37+
}
38+
}
39+
}
3140
}
3241
}
3342
}

LogcatCrashlyticLib/build.gradle

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,17 @@ publishing {
3434
publications {
3535
release(MavenPublication) {
3636
afterEvaluate {
37-
from components.release
37+
from components.release {
38+
pom {
39+
licenses {
40+
license {
41+
name = "Apache License Version 2.0"
42+
url = "https://github.com/AppDevNext/Logcat/blob/master/LICENSE"
43+
}
44+
}
45+
}
46+
}
3847
}
3948
}
4049
}
41-
}
50+
}

0 commit comments

Comments
 (0)