https://github.com/javaparser/javaparser-gradle-sample
Sample project with a basic Gradle + JavaParser setup
https://github.com/javaparser/javaparser-gradle-sample
bootstrap gradle java javaparser parser tutorial
Last synced: about 1 month ago
JSON representation
Sample project with a basic Gradle + JavaParser setup
- Host: GitHub
- URL: https://github.com/javaparser/javaparser-gradle-sample
- Owner: javaparser
- Created: 2020-12-04T17:21:54.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-02T14:03:37.000Z (about 3 years ago)
- Last Synced: 2024-03-26T03:53:22.714Z (almost 2 years ago)
- Topics: bootstrap, gradle, java, javaparser, parser, tutorial
- Language: Java
- Homepage: https://github.com/javaparser/javaparser
- Size: 73.2 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
JavaParser and Gradle sample
---
A fully working sample Gradle project that parses and generates code with [JavaParser](http://www.javaparser.org)
This is targeted at people without [Gradle](https://gradle.org/) experience.
To build it, you will need to download and unpack the latest (or recent) version of Gradle (https://gradle.org/install/)
and put the `gradle` command on your path. Alternatively, you can use the (included) gradle wrapper.
Then, you will need to install a Java 1.8 (or higher) JDK (not JRE!), and make sure you can run `java` from the command line.
Now you can run `gradle shadowJar` - Gradle will compile your project and put the
resulting jar file in the `build` directory.
If you like to run from the command line, execute
`java -jar build/libs/javaparser-gradle-sample-shadow-1.0-SNAPSHOT-beta.jar`.
How you run this code is up to you, but usually you would start by using an IDE
like [NetBeans](https://netbeans.org/), [Intellij IDEA](https://www.jetbrains.com/idea/),
or [Eclipse](https://eclipse.org/ide/).
Note that the JavaParser dependencies may lag behind the official releases a bit.
If you notice some problems with this setup, please open an issue.