xtend-tools icon indicating copy to clipboard operation
xtend-tools copied to clipboard

How to build?

Open atila29 opened this issue 3 years ago • 4 comments

How do I build and add to another project?

atila29 avatar Apr 27 '21 15:04 atila29

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 avatar Apr 27 '21 16:04 blueneogeo

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

blueneogeo avatar Apr 27 '21 17:04 blueneogeo

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"

atila29 avatar Apr 27 '21 17:04 atila29

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.

blueneogeo avatar Apr 27 '21 18:04 blueneogeo