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

How to build? #3

Open
atila29 opened this issue Apr 27, 2021 · 4 comments
Open

How to build? #3

atila29 opened this issue Apr 27, 2021 · 4 comments

Comments

@atila29
Copy link

atila29 commented Apr 27, 2021

How do I build and add to another project?

@atila29 atila29 changed the title How do i build? How to build? Apr 27, 2021
@blueneogeo
Copy link
Owner

blueneogeo commented Apr 27, 2021

Hi @atila29 , you will need to have gradle installed. You can then go to the xtend-tools project directory, and run gradle install. This will install it in your local maven. Then in your own project, you can add it by adding com.kimengi.util:xtend-tools:11.0.0 as a compile dependency.

@blueneogeo
Copy link
Owner

I have also updated the documentation: https://github.com/blueneogeo/xtend-tools/blob/master/README.md. Let me know if you have issues.

@atila29
Copy link
Author

atila29 commented Apr 27, 2021

Thanks, though i'm getting an build error:

  • Where:
    Build file '/home/mp/Projects/thesis/xtend-tools/build.gradle' line: 16

  • What went wrong:
    A problem occurred evaluating root project 'xtend-tools'.

Cannot add task 'wrapper' as a task with that name already exists.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 563ms
Some of the file system contents retained in the virtual file system are on file systems that Gradle doesn't support watching. The relevant state was discarded to ensure changes to these locations are properly detected. You can override this by explicitly enabling file system watching.
Watching 0 directories to track changes

Running with:
xtend-tools git:(master) ✗ gradle --version


Gradle 7.0

Build time: 2021-04-26 21:51:10 UTC
Revision:

Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.11 (Oracle Corporation 11.0.11+9)
OS: Linux 5.11.11-arch1-1 amd64

xtend-tools git:(master) ✗ mvn --version
Apache Maven 3.8.1 (NON-CANONICAL_2021-04-26T21:52:54Z_root)
Maven home: /opt/maven
Java version: 11.0.11, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-openjdk
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.11.11-arch1-1", arch: "amd64", family: "unix"

@blueneogeo
Copy link
Owner

Hi, I had a look and could replicate the problem. The wrapper seems to be part of the newer gradle now, and can be removed from the script.

However after doing so, there still is a build issue regarding the annotation processor of xtend. It seems to be related to the xtend plugin, and the newer gradle.

A solution would be to use the gradle wrapper, however wrapper 4.x does not support java 11. I am sorry, I do not have a good solution yet.

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

No branches or pull requests

2 participants