Skip to content

Commit ee35984

Browse files
committed
Added pom.xml generation
1 parent 05d4a52 commit ee35984

File tree

3 files changed

+141
-3
lines changed

3 files changed

+141
-3
lines changed

buildSrc/src/main/kotlin/buildsrc/conventions/publishing.gradle.kts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,15 @@ signing {
9898
})
9999
}
100100

101-
tasks.withType<Sign>().configureEach {
102-
val signingRequiredPredicate = provider { signing.isRequired }
103-
onlyIf { signingRequiredPredicate.get() }
101+
tasks {
102+
withType<Sign>().configureEach {
103+
val signingRequiredPredicate = provider { signing.isRequired }
104+
onlyIf { signingRequiredPredicate.get() }
105+
}
106+
107+
withType<GenerateMavenPom> {
108+
destination = file("$projectDir/pom.xml")
109+
}
104110
}
105111

106112
// https://youtrack.jetbrains.com/issue/KT-46466

urlencoder-app/pom.xml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<!-- This module was also published with a richer model, Gradle metadata, -->
4+
<!-- which should be used instead. Do not delete the following line which -->
5+
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
6+
<!-- that they should prefer consuming it instead. -->
7+
<!-- do_not_remove: published-with-gradle-metadata -->
8+
<modelVersion>4.0.0</modelVersion>
9+
<groupId>net.thauvin.erik.urlencoder</groupId>
10+
<artifactId>urlencoder-app-jvm</artifactId>
11+
<version>1.4.0</version>
12+
<name>UrlEncoder for Kotlin Multiplatform</name>
13+
<description>A simple defensive library to encode/decode URL components</description>
14+
<url>https://github.com/ethauvin/urlencoder</url>
15+
<licenses>
16+
<license>
17+
<name>The Apache License, Version 2.0</name>
18+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
</license>
20+
</licenses>
21+
<developers>
22+
<developer>
23+
<id>gbevin</id>
24+
<name>Geert Bevin</name>
25+
<email>gbevin@uwyn.com</email>
26+
<url>https://github.com/gbevin</url>
27+
</developer>
28+
<developer>
29+
<id>ethauvin</id>
30+
<name>Erik C. Thauvin</name>
31+
<email>erik@thauvin.net</email>
32+
<url>https://erik.thauvin.net/</url>
33+
</developer>
34+
<developer>
35+
<id>aSemy</id>
36+
<name>Adam</name>
37+
<url>https://github.com/aSemy</url>
38+
</developer>
39+
</developers>
40+
<scm>
41+
<connection>scm:git://github.com/ethauvin/urlencoder.git</connection>
42+
<developerConnection>scm:git@github.com:ethauvin/urlencoder.git</developerConnection>
43+
<url>https://github.com/ethauvin/urlencoder</url>
44+
</scm>
45+
<issueManagement>
46+
<system>GitHub</system>
47+
<url>https://github.com/ethauvin/urlencoder/issues</url>
48+
</issueManagement>
49+
<dependencies>
50+
<dependency>
51+
<groupId>org.jetbrains.kotlin</groupId>
52+
<artifactId>kotlin-stdlib-jdk8</artifactId>
53+
<version>1.9.10</version>
54+
<scope>compile</scope>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.jetbrains.kotlin</groupId>
58+
<artifactId>kotlin-stdlib-common</artifactId>
59+
<version>1.9.10</version>
60+
<scope>compile</scope>
61+
</dependency>
62+
<dependency>
63+
<groupId>net.thauvin.erik.urlencoder</groupId>
64+
<artifactId>urlencoder-lib-jvm</artifactId>
65+
<version>1.4.0</version>
66+
<scope>runtime</scope>
67+
</dependency>
68+
</dependencies>
69+
</project>

urlencoder-lib/pom.xml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<!-- This module was also published with a richer model, Gradle metadata, -->
4+
<!-- which should be used instead. Do not delete the following line which -->
5+
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
6+
<!-- that they should prefer consuming it instead. -->
7+
<!-- do_not_remove: published-with-gradle-metadata -->
8+
<modelVersion>4.0.0</modelVersion>
9+
<groupId>net.thauvin.erik.urlencoder</groupId>
10+
<artifactId>urlencoder-lib-jvm</artifactId>
11+
<version>1.4.0</version>
12+
<name>UrlEncoder for Kotlin Multiplatform</name>
13+
<description>A simple defensive library to encode/decode URL components</description>
14+
<url>https://github.com/ethauvin/urlencoder</url>
15+
<licenses>
16+
<license>
17+
<name>The Apache License, Version 2.0</name>
18+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
</license>
20+
</licenses>
21+
<developers>
22+
<developer>
23+
<id>gbevin</id>
24+
<name>Geert Bevin</name>
25+
<email>gbevin@uwyn.com</email>
26+
<url>https://github.com/gbevin</url>
27+
</developer>
28+
<developer>
29+
<id>ethauvin</id>
30+
<name>Erik C. Thauvin</name>
31+
<email>erik@thauvin.net</email>
32+
<url>https://erik.thauvin.net/</url>
33+
</developer>
34+
<developer>
35+
<id>aSemy</id>
36+
<name>Adam</name>
37+
<url>https://github.com/aSemy</url>
38+
</developer>
39+
</developers>
40+
<scm>
41+
<connection>scm:git://github.com/ethauvin/urlencoder.git</connection>
42+
<developerConnection>scm:git@github.com:ethauvin/urlencoder.git</developerConnection>
43+
<url>https://github.com/ethauvin/urlencoder</url>
44+
</scm>
45+
<issueManagement>
46+
<system>GitHub</system>
47+
<url>https://github.com/ethauvin/urlencoder/issues</url>
48+
</issueManagement>
49+
<dependencies>
50+
<dependency>
51+
<groupId>org.jetbrains.kotlin</groupId>
52+
<artifactId>kotlin-stdlib-jdk8</artifactId>
53+
<version>1.9.10</version>
54+
<scope>compile</scope>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.jetbrains.kotlin</groupId>
58+
<artifactId>kotlin-stdlib-common</artifactId>
59+
<version>1.9.10</version>
60+
<scope>compile</scope>
61+
</dependency>
62+
</dependencies>
63+
</project>

0 commit comments

Comments
 (0)