Gradle Plugin to build Processing Libraries.
- Processing β Libraries
- Processing Wiki β Library Guidelines
- Processing Wiki β
library.properties
Download
IntelliJ IDEA
LibraryName
ββ
settings.gradle.kts
ββ
build.gradle.kts
ββ
src/java/main
βββββββ
me.username
βββββββ ββ
ProcessingLibrary.java
ββ
build/processingLibrary
βββββ
LibraryName.pdex
βββββ
LibraryName.zip
βββββ
LibraryName.txt
build.gradle.kts
group = "me.username"
version = "0.0.1"
plugins {
java
/** Apply the Processing Library Gradle Plugin */
id("net.stephcraft.processing-library") version "0.0.1"
}
processingLibrary {
/** Configure library.properties here */
properties {
/** The name of your library as you want it formatted. (defaults to project name) */
name = "Cool Library"
/** A web page for your library, NOT a direct link to where to download it. */
url = "https://username.github.io/libraryName"
/** The category (or categories) of your library. */
categories = DATA + IO
/** A short sentence to summarize the library's function. (defaults to project description) */
sentence = ""
/** Additional information suitable for the Processing website. */
paragraph = ""
/** A version number that increments once with each release. */
version = 1
/** The version as the user will see it. (defaults to project version) */
prettyVersion = project.version.toString()
/** The min and max revision of Processing compatible with your library. (optional) */
revisionRange = 0..1000
}
/** Alternatively you can use a library.properties file */
propertiesFile = file("library.properties")
/** You can also customize the output directory */
destinationDirectory = layout.buildDirectory.dir("processingLibrary")
}
repositories {
mavenCentral()
}
dependencies {
/**
* Add Processing as a dependency
* https://mvnrepository.com/artifact/org.processing/core
*/
compileOnly("org.processing:core:4.5.5")
}
tasks {
/**
* :generateProcessingLibrary will run when you press Build in IntelliJ IDEA
* The generated processing library files are in build/processingLibrary
*/
generateProcessingLibrary {
mustRunAfter("jar")
}
}settings.gradle.kts
pluginManagement {
repositories {
gradlePluginPortal()
maven("https://jitpack.io")
}
resolutionStrategy {
eachPlugin {
if (requested.id.toString() == "net.stephcraft.processing-library") {
useModule("com.github.Stephcraft:Processing-Library-Plugin:main-SNAPSHOT")
}
}
}
}:generateProcessingLibraryβ Generates the processing library artifacts inbuild/processingLibrary