Skip to content

Commit 3ac1e57

Browse files
committed
[GR-52774] Add project descriptions and URLs.
PullRequest: graalpython/3258
2 parents a587cc9 + e50e593 commit 3ac1e57

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

graalpython/graalpy-archetype-polyglot-app/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ SOFTWARE.
4545
<groupId>org.graalvm.python</groupId>
4646
<artifactId>graalpy-archetype-polyglot-app</artifactId>
4747
<version>24.1.0</version>
48+
<url>http://www.graalvm.org/</url>
49+
<description>Maven archetype providing a skeleton GraalPy - Java polyglot application.</description>
4850
<packaging>maven-archetype</packaging>
4951

5052
<properties>

graalpython/graalpy-maven-plugin/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ SOFTWARE.
4848
<artifactId>graalpy-maven-plugin</artifactId>
4949
<packaging>maven-plugin</packaging>
5050
<version>24.1.0</version>
51+
<url>http://www.graalvm.org/</url>
5152
<name>graalpy-maven-plugin</name>
53+
<description>Handles python related resources in a maven GraalPy - Java polyglot application.</description>
5254

5355
<properties>
5456
<maven.compiler.target>17</maven.compiler.target>

mx.graalpython/mx_graalpython.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2740,7 +2740,11 @@ def __init__(self, suite, name, deps, excludedLibs, platformDependent, theLicens
27402740
self._localExtension = self._remoteExtension = "jar"
27412741
else:
27422742
self._localExtension = self._remoteExtension
2743-
self.description = self.pom.get("description", "")
2743+
self.description = self.pom.get_text("description")
2744+
if not self.description:
2745+
mx.abort(f"MavenProject {self.name} does not have a description, which is required by Maven Central")
2746+
if not self.pom.get_text("url"):
2747+
mx.abort(f"MavenProject {self.name} does not have a url, which is required by Maven Central")
27442748
self.sourcesname = f"{self.name}-sources.{self._localExtension}"
27452749
self.sourcesPath = os.path.join(self.get_output_root(), self.sourcesname)
27462750
self.path = self._default_path()

0 commit comments

Comments
 (0)