Skip to content

Commit 3e81ca3

Browse files
committed
added the dependency on javaparser
1 parent a2b3d87 commit 3e81ca3

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
JavaParser and Maven sample
2+
---
3+
4+
A fully working sample Maven project that parses and generates code with [JavaParser](http://www.javaparser.org)
5+
6+
This is targeted at people without [Maven](https://maven.apache.org/) experience.
7+
8+
To build it, you will need to download and unpack the latest (or recent) version of Maven (https://maven.apache.org/download.cgi)
9+
and put the `mvn` command on your path.
10+
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.
11+
Now you can run `mvn clean install` and Maven will compile your project,
12+
an put the results it in two jar files in the `target` directory.
13+
If you like to run from the command line,
14+
execute `java -jar target/javaparser-maven-sample-1.0-SNAPSHOT-shaded.jar`.
15+
16+
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/).
17+
18+
The Maven dependencies may lag behind the official releases a bit.
19+
20+
If you notice some problems with this setup, please open an issue.

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ repositories {
1010
}
1111

1212
dependencies {
13+
implementation group: 'com.github.javaparser', name: 'javaparser-core', version: '3.15.21'
1314
testCompile group: 'junit', name: 'junit', version: '4.12'
1415
}

0 commit comments

Comments
 (0)