Skip to content

Commit ad3b1e8

Browse files
committed
Add pom configuration for Gradle
Match pom attributes
1 parent 35b171b commit ad3b1e8

2 files changed

Lines changed: 36 additions & 7 deletions

File tree

build.gradle.kts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,37 @@ subprojects {
3535

3636
val publications: PublicationContainer = extensions.getByType<PublishingExtension>().publications
3737

38+
publications.withType<MavenPublication>().forEach {
39+
it.pom {
40+
name.set(project.name)
41+
description.set("A utility to map Java services to their obfuscated counterparts.")
42+
url.set("https://github.com/GiantTreeLP/proguard-services-mapper")
43+
packaging = "jar"
44+
45+
scm {
46+
connection.set("scm:git:https://github.com/GiantTreeLP/proguard-services-mapper")
47+
developerConnection.set("scm:git:https://github.com/GiantTreeLP")
48+
url.set("https://github.com/GiantTreeLP/proguard-services-mapper")
49+
}
50+
51+
licenses {
52+
license {
53+
name.set("MIT License")
54+
url.set("https://opensource.org/licenses/MIT")
55+
distribution.set("repo")
56+
}
57+
}
58+
59+
developers {
60+
developer {
61+
id.set("gianttreelp")
62+
name.set("Marvin K")
63+
email.set("webmaster@gianttree.de")
64+
}
65+
}
66+
}
67+
}
68+
3869
configure<SigningExtension> {
3970
useGpgCmd()
4071
val signingKey =

proguard-services-mapper-maven/pom.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,19 @@
1717

1818
<licenses>
1919
<license>
20-
<name>GNU LESSER GENERAL PUBLIC LICENSE Version 3</name>
21-
<url>
22-
https://github.com/GiantTreeLP/proguard-services-mapper/blob/main/LICENSE
23-
</url>
20+
<name>MIT License</name>
21+
<url>https://opensource.org/licenses/MIT</url>
2422
<distribution>repo</distribution>
2523
</license>
2624
</licenses>
2725

2826
<scm>
2927
<developerConnection>
30-
scm:git:git@github.com:GiantTreeLP/proguard-services-mapper.git
28+
scm:git:git@github.com:GiantTreeLP
3129
</developerConnection>
3230
<connection>scm:git:git://github.com/GiantTreeLP/proguard-services-mapper.git
3331
</connection>
34-
<url>https://github.com/GiantTreeLP/proguard-services-mapper/tree/main</url>
32+
<url>https://github.com/GiantTreeLP/proguard-services-mapper</url>
3533
</scm>
3634

3735
<properties>
@@ -42,7 +40,7 @@
4240

4341
<developers>
4442
<developer>
45-
<id>gianttree</id>
43+
<id>gianttreelp</id>
4644
<name>Marvin K</name>
4745
<url>https://github.com/GiantTreeLP</url>
4846
<email>webmaster@gianttree.de</email>

0 commit comments

Comments
 (0)