|
1 |
| -package io.prestosql.maven; |
| 1 | +package io.trino.maven; |
2 | 2 |
|
3 | 3 | import org.apache.maven.artifact.Artifact;
|
4 | 4 | import org.apache.maven.plugin.AbstractMojo;
|
|
30 | 30 | public class SpiDependencyChecker
|
31 | 31 | extends AbstractMojo
|
32 | 32 | {
|
33 |
| - @Parameter(defaultValue = "io.prestosql") |
| 33 | + @Parameter(defaultValue = "io.trino") |
34 | 34 | private String spiGroupId;
|
35 | 35 |
|
36 |
| - @Parameter(defaultValue = "presto-spi") |
| 36 | + @Parameter(defaultValue = "trino-spi") |
37 | 37 | private String spiArtifactId;
|
38 | 38 |
|
39 | 39 | @Parameter(defaultValue = "false")
|
@@ -70,17 +70,17 @@ public void execute()
|
70 | 70 | String name = artifact.getGroupId() + ":" + artifact.getArtifactId();
|
71 | 71 | if (spiDependencies.contains(name)) {
|
72 | 72 | if (!"jar".equals(artifact.getType())) {
|
73 |
| - throw new MojoExecutionException(format("%n%nPresto plugin dependency %s must have type 'jar'.", name)); |
| 73 | + throw new MojoExecutionException(format("%n%nTrino plugin dependency %s must have type 'jar'.", name)); |
74 | 74 | }
|
75 | 75 | if (artifact.getClassifier() != null) {
|
76 |
| - throw new MojoExecutionException(format("%n%nPresto plugin dependency %s must not have a classifier.", name)); |
| 76 | + throw new MojoExecutionException(format("%n%nTrino plugin dependency %s must not have a classifier.", name)); |
77 | 77 | }
|
78 | 78 | if (!"provided".equals(artifact.getScope())) {
|
79 |
| - throw new MojoExecutionException(format("%n%nPresto plugin dependency %s must have scope 'provided'. It is part of the SPI and will be provided at runtime.", name)); |
| 79 | + throw new MojoExecutionException(format("%n%nTrino plugin dependency %s must have scope 'provided'. It is part of the SPI and will be provided at runtime.", name)); |
80 | 80 | }
|
81 | 81 | }
|
82 | 82 | else if ("provided".equals(artifact.getScope()) && !allowedProvidedDependencies.contains(name)) {
|
83 |
| - throw new MojoExecutionException(format("%n%nPresto plugin dependency %s must not have scope 'provided'. It is not part of the SPI and will not be available at runtime.", name)); |
| 83 | + throw new MojoExecutionException(format("%n%nTrino plugin dependency %s must not have scope 'provided'. It is not part of the SPI and will not be available at runtime.", name)); |
84 | 84 | }
|
85 | 85 | }
|
86 | 86 | }
|
@@ -114,12 +114,12 @@ private Artifact getSpiDependency()
|
114 | 114 | for (Artifact artifact : project.getArtifacts()) {
|
115 | 115 | if (isSpiArtifact(artifact)) {
|
116 | 116 | if (!"provided".equals(artifact.getScope())) {
|
117 |
| - throw new MojoExecutionException(format("%n%nPresto plugin dependency %s must have scope 'provided'.", spiName())); |
| 117 | + throw new MojoExecutionException(format("%n%nTrino plugin dependency %s must have scope 'provided'.", spiName())); |
118 | 118 | }
|
119 | 119 | return artifact;
|
120 | 120 | }
|
121 | 121 | }
|
122 |
| - throw new MojoExecutionException(format("%n%nPresto plugin must depend on %s.", spiName())); |
| 122 | + throw new MojoExecutionException(format("%n%nTrino plugin must depend on %s.", spiName())); |
123 | 123 | }
|
124 | 124 |
|
125 | 125 | private boolean isSpiArtifact(Artifact artifact)
|
|
0 commit comments