File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
build-logic/plugins/src/main/java/ch/srgssr/pillarbox/gradle Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,51 @@ class PillarboxAndroidLibraryPublishingPlugin : Plugin<Project> {
6969 afterEvaluate {
7070 from(components[" release" ])
7171 }
72+
73+ pom {
74+ name.set(project.name)
75+ url.set(" https://github.com/SRGSSR/pillarbox-android/" )
76+ inceptionYear.set(" 2022" )
77+
78+ licenses {
79+ license {
80+ name.set(" The MIT License" )
81+ url.set(" https://opensource.org/licenses/MIT" )
82+ }
83+ }
84+
85+ organization {
86+ name.set(" SRG SSR" )
87+ url.set(" https://www.srgssr.ch/" )
88+ }
89+
90+ scm {
91+ connection.set(" scm:git:git://github.com/SRGSSR/pillarbox-android.git" )
92+ developerConnection.set(
" scm:git:[email protected] :SRGSSR/pillarbox-android.git" )
93+ url.set(" https://github.com/SRGSSR/pillarbox-android" )
94+ }
95+
96+ issueManagement {
97+ system.set(" GitHub Issues" )
98+ url.set(" https://github.com/SRGSSR/pillarbox-android/issues" )
99+ }
100+
101+ ciManagement {
102+ system.set(" GitHub Actions" )
103+ url.set(" https://github.com/SRGSSR/pillarbox-android/actions" )
104+ }
105+
106+ // TODO Simplify this once https://github.com/gradle/gradle/issues/28759 is released
107+ withXml {
108+ asNode().appendNode(" distributionManagement" ).apply {
109+ appendNode(" repository" ).apply {
110+ appendNode(" id" , " github" )
111+ appendNode(" name" , " GitHub Packages" )
112+ appendNode(" url" , " https://maven.pkg.github.com/SRGSSR/pillarbox-android" )
113+ }
114+ }
115+ }
116+ }
72117 }
73118 }
74119
You can’t perform that action at this time.
0 commit comments