Skip to content

Commit

Permalink
Import into eclipse workspace (#499)
Browse files Browse the repository at this point in the history
* added eclipse folders to .gitignore file

* added eclipse folders to .gitignore file

* added eclipse settings to gradle build

* Fix minor format and fix charset errors.

Change-Id: Ib1438abe6d6be592ef76381e21bb4e037e9ca1e9

Co-authored-by: Frank Liu <[email protected]>
  • Loading branch information
ebamberg and frankfliu authored Jan 8, 2021
1 parent 025e140 commit ec76132
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ libs
*.dylib
*.dll
*.class

# Eclipse
.settings
.project
.classpath
bin/
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,26 @@ gradlew build -x test

**Note:** SpotBugs is not compatible with JDK 11+. SpotBugs will not be executed if you are using JDK 11+.

### Importing into eclipse

to import source project into eclipse

```sh
# for Linux/macOS:
./gradlew eclipse


# for Windows:
gradlew eclipse

```

in eclipse

file->import->gradle->existing gradle project

**Note:** please set your workspace text encoding setting to UTF-8

## Community

Join our [<img src='https://cdn3.iconfinder.com/data/icons/social-media-2169/24/social_media_social_media_logo_slack-512.png' width='20px' /> slack channel](https://join.slack.com/t/deepjavalibrary/shared_invite/zt-ar91gjkz-qbXhr1l~LFGEIEeGBibT7w) to get in touch with the development team, for questions and discussions.
Expand Down
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ configure(javaProjects()) {
compileJava.options.compilerArgs.addAll(["--release", "8"])
}

apply plugin: 'eclipse'

eclipse {
jdt.file.withProperties { props ->
props.setProperty "org.eclipse.jdt.core.circularClasspath", "warning"
}
classpath {
sourceSets.test.java {
srcDirs = ["src/test/java"]
exclude "**/package-info.java"
}
}
}

apply from: file("${rootProject.projectDir}/tools/gradle/java-formatter.gradle")
apply from: file("${rootProject.projectDir}/tools/gradle/check.gradle")

Expand Down

0 comments on commit ec76132

Please sign in to comment.