wuff icon indicating copy to clipboard operation
wuff copied to clipboard

Cannot build plugin against org.junit bundle

Open radimk opened this issue 11 years ago • 1 comments

My META-INF/MANIFEST.MF contains Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Wuff-junit Bundle-SymbolicName: wuff-junit Bundle-Version: 1.0.0.qualifier Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Require-Bundle: org.junit

There is a source src/wuff/junit containing: ` package wuff.junit;

import org.junit.Assert; import org.junit.Test;

public class WuffTest {

@Test
public void foo() {
    Assert.fail();
}

} ` Plugin like this builds using Eclipse PDE as it depends on org.junit-4.11.0.v201303080030

If I add build script like ` buildscript { repositories { jcenter() maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' } }

dependencies { classpath "org.akhikhl.wuff:wuff-plugin:$wuff_version" } }

repositories { jcenter() maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' } }

apply plugin: 'java' apply plugin: 'org.akhikhl.wuff.eclipse-ide-bundle'

dependencies { compile "${eclipseMavenGroup}:org.junit:+" } The compilation fails because it cannot find classes from junit.jar. org.junit bundle contains this JAR and its classpath is set upBundle-ClassPath: junit.jar`.

I've also seen message 'Bundle name org.junit could not be found' in a more complex setup expanding this. There is a project with org.akhikhl.wuff.eclipse-ide-app plugin applies where I want to install this plugin + org.junit as its dependency.

radimk avatar Oct 23 '14 11:10 radimk

I'll have a look.

akhikhl avatar Oct 23 '14 13:10 akhikhl