-plugin.geckoexporter:\ org.gecko.runtime.bnd.export.GeckoExporter -pluginpath:\ ${build}/cache/GeckoRuntime/org.gecko.runtime.bnd-1.0.4.jar;url=http://devel.data-in-motion.biz/public/repository/gecko/release/geckoRuntime/org.gecko.runtime.bnd/org.gecko.runtime.bnd-1.0.4.jar -exporttype: gecko.export;gecko.runtime.dir=${.}/{{runtime}} -runfw: org.apache.felix.framework -runee: JavaSE-1.8 -runprovidedcapabilities: ${native_capability} -runpath: \ ch.qos.logback.classic;version='[1.2.3,1.2.4)',\ ch.qos.logback.core;version='[1.2.3,1.2.4)',\ jul.to.slf4j;version='[1.7.25,1.7.26)',\ slf4j.api;version='[1.7.25,1.7.26)' -runsystempackages: \ org.slf4j;version=1.7.25,\ org.slf4j.helpers;version=1.7.25,\ org.slf4j.spi;version=1.7.25 -runproperties: \ logback.configurationFile=file:${.}/runtime/etc/logback.xml,\ gecko.base.dir=${.}/runtime\,\ gecko.conf.dir=${.}/runtime/etc,\ gecko.data.dir'=${.}/runtime/data -resolve.effective: active;skip:="osgi.service" -runbundles: \ org.gecko.runtime.logging;version='[1.0.0,2.0.0)',\ org.gecko.runtime.boot;version='[1.0.0,2.0.0)',\ org.apache.felix.configadmin;version='[1.9.4,1.9.5)',\ org.apache.felix.scr;version='[2.1.2,3.0.0)',\ org.apache.felix.configurator;version='[1.0.4,1.0.5)',\ org.apache.felix.gogo.runtime;version='[1.1.0,1.1.1)',\ org.apache.felix.gogo.shell;version='[1.1.0,1.1.1)',\ org.apache.felix.gogo.command;version='[1.0.2,1.0.3)',\ {{projectName}};version=snapshot -runrequires: \ osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.shell)',\ osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)',\ bnd.identity;id='{{projectName}}' # ----------------------------------------------------- # Add the following content as build.gradle file. # Substitute the following variables with your content, if needed: # - {{fileName}} - The name of the bndrun file, you want to export # - {{fileName}} - The name of the resulting archive, with the runtime in it # - {{dockerGroupName}} - The docker group name, when using docker export # - {{dockerImageName}} - The name of the docker image, when using docker export # # Create a folder named {{runtime}} in your project, with you customized files # ----------------------------------------------------- # /* # * build Gradle build script # */ # import aQute.bnd.gradle.Export # # configurations { # bundles # } # # task geckoExport(type: Export, dependsOn: export) { # description "Export {{bndrun-name}}.bndrun" # group 'export' # bndrun "{{bndrun-name}}.bndrun" # exporter 'gecko.export' # } # # task prepareDocker(dependsOn: geckoExport){ # def stageDir = file('generated/docker') # doFirst { # stageDir.deleteDir() # } # doLast { # println "Prepare for Docker" # stageDir.mkdirs() # // copy all necessary files to build/docker/ dir # copy { # from { # zipTree("generated/distributions/gecko.export/{{archive-name}}.zip") # } # into stageDir # } # copy { # from new File(stageDir, "docker") # into stageDir # } # copy { # from 'docker' # into stageDir # } # } # } # # task buildDocker(type:Exec, dependsOn: prepareDocker){ # # workingDir 'generated/docker' # def tag = "{{dockerGroupName}}/{{dockerImageName}}:latest" # executable "docker" # # args "build", "-f", "Dockerfile", ".", "-t", tag # # doFirst{ # println "Building docker image {{dockerGroupName}}/{{dockerImageName}}" # } # }