diff --git a/src/main/java/net/sghill/jenkins/rewrite/AddPluginsBom.java b/src/main/java/net/sghill/jenkins/rewrite/AddPluginsBom.java index da64c90..e1911fc 100644 --- a/src/main/java/net/sghill/jenkins/rewrite/AddPluginsBom.java +++ b/src/main/java/net/sghill/jenkins/rewrite/AddPluginsBom.java @@ -22,6 +22,7 @@ import org.openrewrite.Preconditions; import org.openrewrite.ScanningRecipe; import org.openrewrite.TreeVisitor; +import org.openrewrite.jenkins.BomLookup; import org.openrewrite.marker.SearchResult; import org.openrewrite.maven.AddManagedDependency; import org.openrewrite.maven.AddManagedDependencyVisitor; diff --git a/src/main/java/net/sghill/jenkins/rewrite/BomLookup.java b/src/main/java/org/openrewrite/jenkins/BomLookup.java similarity index 99% rename from src/main/java/net/sghill/jenkins/rewrite/BomLookup.java rename to src/main/java/org/openrewrite/jenkins/BomLookup.java index fbb1780..b4b4b81 100644 --- a/src/main/java/net/sghill/jenkins/rewrite/BomLookup.java +++ b/src/main/java/org/openrewrite/jenkins/BomLookup.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package net.sghill.jenkins.rewrite; +package org.openrewrite.jenkins; import lombok.Getter; import org.openrewrite.InMemoryExecutionContext; diff --git a/src/test/kotlin/net/sghill/jenkins/rewrite/BomLookupTest.java b/src/test/java/org/openrewrite/jenkins/BomLookupTest.java similarity index 91% rename from src/test/kotlin/net/sghill/jenkins/rewrite/BomLookupTest.java rename to src/test/java/org/openrewrite/jenkins/BomLookupTest.java index 2f205e5..cdc9fc9 100644 --- a/src/test/kotlin/net/sghill/jenkins/rewrite/BomLookupTest.java +++ b/src/test/java/org/openrewrite/jenkins/BomLookupTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package net.sghill.jenkins.rewrite; +package org.openrewrite.jenkins; import org.junit.jupiter.api.Test; import org.openrewrite.maven.tree.GroupArtifact; @@ -24,12 +24,12 @@ public class BomLookupTest { static final BomLookup bomLookup = new BomLookup(); @Test - void lookup() { + void shouldLookupByGroupIdAndArtifactId() { assertThat(bomLookup.inBom("io.jenkins.plugins", "theme-manager")).isTrue(); } @Test - void allPlugins() { + void shouldPrintAllPlugins() { bomLookup.getGroupArtifacts().stream() .filter(groupArtifact -> groupArtifact.getGroupId().equals("io.jenkins.plugins")) .map(GroupArtifact::getArtifactId)