diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..b21186bf0b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,75 @@ +# Text files with LF eol +*.auth crlf=input +*.awk crlf=input +*.bnd crlf=input +*.bndrun crlf=input +*.c crlf=input ident +*.conf crlf=input +*.cpp crlf=input ident +*.css crlf=input +*.ddf crlf=input +*.ee crlf=input +*.gradle crlf=input +*.groovy crlf=input +*.h crlf=input ident +*.html crlf=input ident +*.java crlf=input ident +*.js crlf=input +*.lib crlf=input +*.md crlf=input +*.MF crlf=input +*.mf crlf=input +*.perm crlf=input +*.php crlf=input +*.pl crlf=input +*.pom crlf=input +*.prefs crlf=input +*.properties crlf=input +*.py crlf=input +*.schema crlf=input +*.SF crlf=input +*.sh crlf=input +*.tcl crlf=input +*.txt crlf=input +*.xml crlf=input +*.xsd crlf=input ident +*.xsl crlf=input +*.xslt crlf=input +*.yml crlf=input +.classpath crlf=input +.project crlf=input +gradlew crlf=input +packageinfo crlf=input +Makefile crlf=input +README crlf=input +LICENSE crlf=input + +# No EOL translation +*.bat -crlf + +# Binary. No EOL translation, no diff +*.ico binary +*.jpeg binary +*.jpg binary +*.png binary +*.crt binary +*.pdf binary +*.dll binary +*.jar binary +*.jnilib binary +*.so binary +*.zip binary +*.doc binary +*.ppt binary +*.xls binary +*.odg binary +*.odp binary +*.ods binary +*.odt binary +*.otg binary +*.otp binary +*.ots binary +*.ott binary +*.key binary +*.numbers binary +*.pages binary diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..ca6309369f --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.DS_Store +.gradle/ +/generated/ +enroute.zip +.metadata diff --git a/.gradle-wrapper/gradle-wrapper.jar b/.gradle-wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000..7a3265ee94 Binary files /dev/null and b/.gradle-wrapper/gradle-wrapper.jar differ diff --git a/.gradle-wrapper/gradle-wrapper.properties b/.gradle-wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000..f16d26666b --- /dev/null +++ b/.gradle-wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..bd297790de --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +sudo: false + +language: java + +jdk: + - oraclejdk8 + +install: ./gradlew --version + +script: ./gradlew --continue diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000000..9126595616 --- /dev/null +++ b/build.gradle @@ -0,0 +1 @@ +// Available to customize the build diff --git a/cnf/.classpath b/cnf/.classpath new file mode 100644 index 0000000000..fb5011632c --- /dev/null +++ b/cnf/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/cnf/.gitignore b/cnf/.gitignore new file mode 100644 index 0000000000..bb3d1dda90 --- /dev/null +++ b/cnf/.gitignore @@ -0,0 +1,4 @@ +/generated/ +/bin/ +/cache/ +local/index.* diff --git a/cnf/.project b/cnf/.project new file mode 100644 index 0000000000..1397bbe620 --- /dev/null +++ b/cnf/.project @@ -0,0 +1,11 @@ + + + cnf + + + + + + + + diff --git a/cnf/build.bnd b/cnf/build.bnd new file mode 100644 index 0000000000..5ea4bbbf5e --- /dev/null +++ b/cnf/build.bnd @@ -0,0 +1,3 @@ +# +# This file is left open for you to define your macros +# diff --git a/cnf/central.xml b/cnf/central.xml new file mode 100644 index 0000000000..e96bb860e6 --- /dev/null +++ b/cnf/central.xml @@ -0,0 +1,19 @@ + + 4.0.0 + + local + central + 0.0.0 + + pom + + + + org.apache.felix + org.apache.felix.gogo.shell + 1.0.0 + + + + diff --git a/cnf/ext/enroute-distro.bnd b/cnf/ext/enroute-distro.bnd new file mode 100644 index 0000000000..f4b90501e1 --- /dev/null +++ b/cnf/ext/enroute-distro.bnd @@ -0,0 +1,49 @@ +# +# OSGi enRoute Default Distro +# +# This file defines the properties to be used in an enRoute workspace. +# + +-runfw: org.eclipse.osgi + +-plugin.9x.enroute.distro = \ + aQute.bnd.repository.maven.pom.provider.BndPomRepository; \ + snapshotUrls=https://oss.sonatype.org/content/groups/osgi; \ + releaseUrls=https://repo1.maven.org/maven2/; \ + revision=org.osgi:osgi.enroute.pom.distro:2.1.0-SNAPSHOT; \ + name=Distro; \ + location=${build}/cache/enroute-distro.xml + +-runblacklist.enroute: \ + osgi.identity;filter:='(osgi.identity=osgi.enroute.base.api)', \ + osgi.identity;filter:='(osgi.identity=osgi.cmpn)', \ + osgi.identity;filter:='(osgi.identity=osgi.core)', \ + osgi.identity;filter:='(osgi.identity=biz.aQute.junit)', \ + osgi.identity;filter:='(osgi.identity=biz.aQute.launcher)', \ + osgi.identity;filter:='(osgi.identity=biz.aQute.remote.launcher)' + + +# TODO check if still needed + +-runproperties.eqnx: \ + org.apache.felix.http.jettyEnabled=true, \ + org.apache.felix.http.whiteboardEnabled=true,\ + osgi.console=, \ + osgi.console.enable.builtin=false + +-runpath.eqnx: osgi.enroute.equinox.log.adapter +-runrequires.eqnx: \ + osgi.identity;filter:='(osgi.identity=org.apache.felix.log)' + + +-runsystempackages.eqnx: javax.script +-runsystemcapabilities.dflt: ${native_capability} + +debug-bundles: \ + osgi.identity;filter:='(osgi.identity=osgi.enroute.webconsole.xray.provider)',\ + osgi.implementation;filter:='(osgi.implementation=osgi.metatype)',\ + osgi.implementation;filter:='(osgi.implementation=osgi.log)',\ + osgi.implementation;filter:='(osgi.implementation=osgi.event)',\ + osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)',\ + osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.shell)', \ + osgi.identity;filter:='(osgi.identity=osgi.enroute.base.debug.provider)' diff --git a/cnf/ext/enroute.bnd b/cnf/ext/enroute.bnd new file mode 100644 index 0000000000..913a8e05a8 --- /dev/null +++ b/cnf/ext/enroute.bnd @@ -0,0 +1,43 @@ +# +# -ENROUTE- +# +# This file contains the setup for OSGi enRoute +# + + +javac.source: 1.8 +javac.target: 1.8 +-runee: JavaSE-1.8 + +Service-Component: * +-dsannotations: * +-metatypeannotations: * +-contract: * + + +test-cases: ${classes;NAMED;*Test} +-resolve.effective: resolve, active +-releaserepo: Release + +-plugin.4.Central: \ + aQute.bnd.repository.maven.pom.provider.BndPomRepository; \ + snapshotUrls=https://oss.sonatype.org/content/groups/osgi; \ + releaseUrls=https://repo1.maven.org/maven2/; \ + pom=${build}/central.xml; \ + name=Central; \ + location=${build}/cache/enroute-central.xml + +-plugin.6.Local: \ + aQute.bnd.deployer.repository.LocalIndexedRepo; \ + name = Local ; \ + pretty = true ; \ + local = ${build}/local + + + +-plugin.9.Release: \ +\ + aQute.bnd.deployer.repository.LocalIndexedRepo; \ + name = Release ; \ + pretty = true ; \ + local = ${build}/release diff --git a/cnf/release/index.xml b/cnf/release/index.xml new file mode 100644 index 0000000000..c89dffca14 --- /dev/null +++ b/cnf/release/index.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/cnf/release/index.xml.sha b/cnf/release/index.xml.sha new file mode 100644 index 0000000000..2771b155f6 --- /dev/null +++ b/cnf/release/index.xml.sha @@ -0,0 +1 @@ +b699f269b1871b7ef42e54b5ceb7529989f9474ffa4217c696e5ad333ac8936c \ No newline at end of file diff --git a/cnf/src/.gitignore b/cnf/src/.gitignore new file mode 100644 index 0000000000..e69de29bb2 diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000000..b927f14f45 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +bnd_version=3.4.0 diff --git a/gradlew b/gradlew new file mode 100644 index 0000000000..1c1e5df9de --- /dev/null +++ b/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/.gradle-wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000000..ec24650941 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\.gradle-wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/io.openems.backend.application/.classpath b/io.openems.backend.application/.classpath new file mode 100644 index 0000000000..26009f4234 --- /dev/null +++ b/io.openems.backend.application/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/io.openems.backend.application/.gitignore b/io.openems.backend.application/.gitignore new file mode 100644 index 0000000000..90dde36e4a --- /dev/null +++ b/io.openems.backend.application/.gitignore @@ -0,0 +1,3 @@ +/bin/ +/bin_test/ +/generated/ diff --git a/io.openems.backend.application/.project b/io.openems.backend.application/.project new file mode 100644 index 0000000000..91009d66d4 --- /dev/null +++ b/io.openems.backend.application/.project @@ -0,0 +1,23 @@ + + + io.openems.backend.application + + + + + + org.eclipse.jdt.core.javabuilder + + + + + bndtools.core.bndbuilder + + + + + + org.eclipse.jdt.core.javanature + bndtools.core.bndnature + + diff --git a/io.openems.backend.application/.settings/org.eclipse.core.resources.prefs b/io.openems.backend.application/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..2737fd0622 --- /dev/null +++ b/io.openems.backend.application/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/io/openems/backend/application/BackendApp.java=UTF-8 +encoding//test/io/openems/backend/application/ProviderImplTest.java=UTF-8 +encoding/bnd.bnd=UTF-8 +encoding/io.openems.backend.application.bndrun=UTF-8 +encoding/readme.md=UTF-8 diff --git a/io.openems.backend.application/.settings/org.eclipse.jdt.core.prefs b/io.openems.backend.application/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..3a21537071 --- /dev/null +++ b/io.openems.backend.application/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,11 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/io.openems.backend.application/bnd.bnd b/io.openems.backend.application/bnd.bnd new file mode 100644 index 0000000000..abd42c1605 --- /dev/null +++ b/io.openems.backend.application/bnd.bnd @@ -0,0 +1,20 @@ +# +# io.openems.backend.application PROVIDER BUNDLE +# + +Bundle-Version: 1.0.0.${tstamp} + + +Private-Package: \ + io.openems.backend.application + +-includeresource: {readme.md} + +-buildpath: \ + osgi.enroute.base.api;version=2.1 + +-testpath: \ + osgi.enroute.junit.wrapper;version=4.12, \ + osgi.enroute.hamcrest.wrapper;version=1.3 + +Bundle-Name: OpenEMS Backend \ No newline at end of file diff --git a/io.openems.backend.application/io.openems.backend.application.bndrun b/io.openems.backend.application/io.openems.backend.application.bndrun new file mode 100644 index 0000000000..7bba90004d --- /dev/null +++ b/io.openems.backend.application/io.openems.backend.application.bndrun @@ -0,0 +1,20 @@ +# +# io.openems.backend.application LAUNCH SPECIFICATION +# + + +Bundle-Version: 1.0.0.${tstamp} +Bundle-SymbolicName: io.openems.backend.application.launch +JPM-Command: provider + + +-runrequires: osgi.identity;filter:='(osgi.identity=io.openems.backend.application)' + +-runbundles: \ + io.openems.backend.application;version=snapshot,\ + org.apache.felix.configadmin;version='[1.8.8,1.8.9)',\ + org.apache.felix.log;version='[1.0.1,1.0.2)',\ + org.apache.felix.scr;version='[2.0.2,2.0.3)',\ + org.eclipse.equinox.metatype;version='[1.4.100,1.4.101)',\ + org.osgi.service.metatype;version='[1.3.0,1.3.1)' +-resolve: auto \ No newline at end of file diff --git a/io.openems.backend.application/readme.md b/io.openems.backend.application/readme.md new file mode 100644 index 0000000000..7d615385d9 --- /dev/null +++ b/io.openems.backend.application/readme.md @@ -0,0 +1,8 @@ +# io.openems.backend.application Provider + +${Bundle-Description} + +## Example + +## References + diff --git a/io.openems.backend.application/src/io/openems/backend/application/BackendApp.java b/io.openems.backend.application/src/io/openems/backend/application/BackendApp.java new file mode 100644 index 0000000000..ab522b3a7e --- /dev/null +++ b/io.openems.backend.application/src/io/openems/backend/application/BackendApp.java @@ -0,0 +1,20 @@ +package io.openems.backend.application; + +import org.osgi.service.component.annotations.Activate; +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Deactivate; + +@Component() +public class BackendApp { + + @Activate + void activate() { + System.out.println("Activate"); + } + + @Deactivate + void deactivate() { + System.out.println("Deactivate"); + } + +} diff --git a/io.openems.backend.application/test/io/openems/backend/application/ProviderImplTest.java b/io.openems.backend.application/test/io/openems/backend/application/ProviderImplTest.java new file mode 100644 index 0000000000..b788316a58 --- /dev/null +++ b/io.openems.backend.application/test/io/openems/backend/application/ProviderImplTest.java @@ -0,0 +1,26 @@ +package io.openems.backend.application; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; + +import io.openems.backend.application.BackendApp; + +/* + * Example JUNit test case + * + */ + +public class ProviderImplTest { + + /* + * Example test method + */ + + @Test + public void simple() { + BackendApp impl = new BackendApp(); + assertNotNull(impl); + } + +} diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000000..be7b9e348e --- /dev/null +++ b/settings.gradle @@ -0,0 +1,6 @@ +buildscript { + repositories { mavenCentral() } + dependencies { classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:${bnd_version}" } +} + +apply plugin: 'biz.aQute.bnd.workspace'