Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build or test plugin #2

Closed
chrispy-snps opened this issue Dec 20, 2023 · 2 comments
Closed

cannot build or test plugin #2

chrispy-snps opened this issue Dec 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@chrispy-snps
Copy link

Expected Behavior

I am trying to build the plugin by running ./gradlew build.

Actual Behavior

I get various error messages, depending on which Java version I tried (8, 11, and 17).

Steps to Reproduce

  1. Run rm -rf ~/.gradle (just to rule it out as a problem).
  2. Clone this repository and enter the directory.
  3. Run ./gradlew build.

Copy of the error message, log file or stack trace

In Java 8, I get:

> Task :compileJava
.../git/org.dita.index/src/main/java/org/dita/index/configuration/ConfigEntryImpl.java:34: error: package com.google.common.annotations does not exist
import com.google.common.annotations.VisibleForTesting;
                                    ^
.../git/org.dita.index/src/main/java/org/dita/index/configuration/ConfigEntryImpl.java:39: error: cannot find symbol
@VisibleForTesting
 ^
  symbol: class VisibleForTesting
.../git/org.dita.index/src/main/java/org/dita/index/configuration/IndexConfiguration.java:37: error: cannot access XMLUtils
import org.dita.dost.util.XMLUtils;
                         ^
  bad class file: .../.gradle/caches/modules-2/files-2.1/org.dita-ot/dost/4.1.2/2355a00c6680e8d0a12c9fec1409fe477e3f33b5/dost-4.1.2.jar(org/dita/dost/util/XMLUtils.class)
    class file has wrong version 61.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

I get other errors with Java 11 and Java 17.

Environment

  • Operating system and version: Linux (Ubuntu 20.04 LTS)
  • Java version: 8, 11, 17
@jelovirt
Copy link
Member

jelovirt commented Nov 1, 2024

Fixed by #3

@jelovirt jelovirt closed this as completed Nov 1, 2024
@chrispy-snps
Copy link
Author

Thanks @jelovirt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants