Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Release 1.0.0 #1

Open
djeang opened this issue Oct 7, 2021 · 3 comments
Open

Release 1.0.0 #1

djeang opened this issue Oct 7, 2021 · 3 comments

Comments

@djeang
Copy link
Member

djeang commented Oct 7, 2021

No description provided.

djeang pushed a commit that referenced this issue Oct 7, 2021
djeang pushed a commit that referenced this issue Oct 7, 2021
djeang pushed a commit that referenced this issue Oct 7, 2021
djeang pushed a commit that referenced this issue Oct 8, 2021
@amottier
Copy link

I'm currently trying to test the JaCoCo plugin by running it on Jeka itself.

Currently I only can find one version of JaCoCo Jeka plugin on Maven Central: 1.0.0.RC1: https://search.maven.org/search?q=a:jacoco-plugin. But in the plugin GitHub project I can see a lot of tags including for example a tag named 2.0.0.RC3.

Is the version 1.0.0.RC1 the latest I can use for testing?

I'm currently having issue while trying to run version 1.0.0.RC1, it seems that Jeka still try to look for the plugin as an internal plugin (maybe as a fallback):

amottier@gitlab-runner-1:/srv/project-sources/jerkar/jeka/dev.jeka.core$ ./jeka/output/distrib/jeka @dev.jeka:jacoco-plugin:1.0.0.RC1 jacoco# -LSU
Compile def and initialise Jeka classes
   Compiling def classes for project dev.jeka.core
      Resolve dependencies (4 declared dependencies).
         1 module : 6 files.
   Instantiating Jeka class dev.jeka.core.CoreBuild at /srv/project-sources/jerkar/jeka/dev.jeka.core
      You are not running a release Jeka version. Plugin class dev.jeka.plugins.jacoco.JkPluginJacoco which is compatible with Jeka version 0.9.15.M2 or greater may not work properly.

      Activating Plugin repo with options [downloadPassword = null, downloadRepoName = null, downloadUrl = null, downloadUsername = null, publishPassword = null, publishRepoName = null, publishUrl = null, publishUsername = null]
      Activating Plugin scaffold with options [wrapDelegatePath = null, wrapperJekaVersion = null]
      Activating Plugin gpg with options [keyName = , publicRingPath = null, secretKeyPassword = null, secretRingPath = null]
      Activating Plugin java with options [compilerExtraArgs = null, output = null, pack.javadoc = null, pack.sources = null, project = project , scaffoldTemplate = SIMPLE_FACADE, test.fork = null, test.jvmOptions = null, test.skip = null]
      Activating Plugin versionFromGit with options [commentVersionPrefix = Release:, tagAfterPublish = true, tagPrefixForVersion = ]
      Activating Plugin jacoco with options [enabled = true, xmlReport = true]
         Exception in thread "main" java.lang.NoClassDefFoundError: dev/jeka/core/tool/builtins/jacoco/JkPluginJacoco
                at dev.jeka.plugins.jacoco.JkJacoco.of(JkJacoco.java:43)
                at dev.jeka.plugins.jacoco.JkPluginJacoco.afterSetup(JkPluginJacoco.java:41)
                at dev.jeka.core.tool.JkClass.initialise(JkClass.java:104)
                at dev.jeka.core.tool.JkClass.of(JkClass.java:82)
                at dev.jeka.core.tool.ClassResolver.resolve(ClassResolver.java:132)
                at dev.jeka.core.tool.ClassResolver.resolve(ClassResolver.java:38)
                at dev.jeka.core.tool.Engine.getJkClassInstance(Engine.java:207)
                at dev.jeka.core.tool.Engine.execute(Engine.java:115)
                at dev.jeka.core.tool.Main.main(Main.java:56)
         Caused by: java.lang.ClassNotFoundException: dev.jeka.core.tool.builtins.jacoco.JkPluginJacoco
                at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
                ... 9 more

@djeang
Copy link
Member Author

djeang commented Oct 26, 2021

Thank you for the feedback.
An outdated import was causing the issue. I've posted 1.0.0.R2 on maven central to fix it.
Note that the internal jacoco-plugin has been removed from Jeka distribution which last release version is 0.9.15.RELEASE.

@amottier
Copy link

Thanks, version 1.0.0.RC2 fixed the issue 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants