aboutsummaryrefslogtreecommitdiffstats
path: root/demo/gradle/api
diff options
context:
space:
mode:
Diffstat (limited to 'demo/gradle/api')
-rw-r--r--demo/gradle/api/.gitignore1
-rw-r--r--demo/gradle/api/build.gradle6
-rw-r--r--demo/gradle/api/src/main/java/org/pf4j/demo/api/Greeting.java27
3 files changed, 34 insertions, 0 deletions
diff --git a/demo/gradle/api/.gitignore b/demo/gradle/api/.gitignore
new file mode 100644
index 0000000..378eac2
--- /dev/null
+++ b/demo/gradle/api/.gitignore
@@ -0,0 +1 @@
+build
diff --git a/demo/gradle/api/build.gradle b/demo/gradle/api/build.gradle
new file mode 100644
index 0000000..a758f70
--- /dev/null
+++ b/demo/gradle/api/build.gradle
@@ -0,0 +1,6 @@
+dependencies {
+ implementation group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}"
+ implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
+
+ testImplementation group: 'junit', name: 'junit', version: '4.+'
+}
diff --git a/demo/gradle/api/src/main/java/org/pf4j/demo/api/Greeting.java b/demo/gradle/api/src/main/java/org/pf4j/demo/api/Greeting.java
new file mode 100644
index 0000000..828d61b
--- /dev/null
+++ b/demo/gradle/api/src/main/java/org/pf4j/demo/api/Greeting.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2012-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.pf4j.demo.api;
+
+import org.pf4j.ExtensionPoint;
+
+/**
+ * @author Decebal Suiu
+ */
+public interface Greeting extends ExtensionPoint {
+
+ String getGreeting();
+
+}