File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Including the Processing Core library on your project
2+ Processing’s core libraries are available through [ Maven Central] ( https://central.sonatype.com/artifact/org.processing/core ) .
3+ This allows integration of Processing into Java-based projects using build tools like Maven or Gradle.
4+
5+ > [ !IMPORTANT]
6+ > Repository https://jogamp.org/deployment/maven must be added to the repository list.
7+ >
8+ > This is because the core library depends on some external libraries that are hosted on the aftermentioned repository.
9+ > See the [ Examples] ( #Examples ) section on how to do this.
10+
11+ ## Examples
12+ Here are some examples on how to add the Processing core library to the Maven and Gradle build systems.
13+ All examples consist on two parts:
14+ 1 . Adds the https://jogamp.org/deployment/maven repository to the build system to satisfy dependencies needed by the Processing core library.
15+ 2 . Adds the Processing core library as a dependency to your project.
16+ ### Maven
17+ ``` xml
18+ <repositories >
19+ <repository >
20+ <id >jogamp</id >
21+ <url >https://jogamp.org/deployment/maven</url >
22+ </repository >
23+ </repositories >
24+
25+ <dependencies >
26+ <dependency >
27+ <groupId >org.processing</groupId >
28+ <artifactId >core</artifactId >
29+ <version >4.3.1</version >
30+ </dependency >
31+ </dependencies >
32+ ```
33+ ### Gradle (kotlin)
34+ ``` gradle
35+ repositories {
36+ mavenCentral()
37+ maven {
38+ url = uri("https://jogamp.org/deployment/maven")
39+ }
40+ }
41+
42+ dependencies {
43+ implementation("org.processing:core:4.3.1")
44+ }
45+ ```
46+ ### Gradle (groovy)
47+ ``` gradle
48+ repositories {
49+ mavenCentral()
50+ maven {
51+ url = uri("https://jogamp.org/deployment/maven")
52+ }
53+ }
54+
55+ dependencies {
56+ implementation group: 'org.processing', name: 'core', version: '4.3.1'
57+ }
58+ ```
59+ ### Other
60+ Other example snippets on including the library are included in the [ Maven Central repo] ( https://central.sonatype.com/artifact/org.processing/core ) .
61+ Please look up on how to add the custom https://jogamp.org/deployment/maven repository to your build system.
62+
163## There are significant changes to ` core ` in Processing 3.
264
365
You can’t perform that action at this time.
0 commit comments