예제 #1
0
  @Test
  public void addsAnOsgiManifestToEachJar() {
    osgiPlugin.apply(project, new PluginRegistry(), null);

    Task task = project.getTasks().getByName(JavaPlugin.JAR_TASK_NAME);
    assertThat(task.property("osgi"), is(OsgiManifest.class));

    task = project.getTasks().add("otherJar", Jar.class);
    assertThat(task.property("osgi"), is(OsgiManifest.class));
  }
예제 #2
0
  @Test
  public void appliesTheJavaPlugin() {
    osgiPlugin.apply(project, new PluginRegistry(), null);

    assertTrue(project.getAppliedPlugins().contains(JavaPlugin.class));
  }