-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
49 lines (45 loc) · 1.2 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: ws-documents
version: '1.8.1'
summary: |
Web-Service API for WebDocs
description: |
WS-Documents project
architectures:
- build-on: armhf
- build-on: arm64
- build-on: amd64
- build-on: i386
confinement: devmode
base: core18
parts:
webdocs:
plugin: maven
source: https://github.com/AlexRogalskiy/ws-documents.git
source-tag: release-$SNAPCRAFT_PROJECT_VERSION
maven-openjdk-version: "8"
source-type: git
source-branch: master
maven-options:
- -DskipTests=true
- -Dmaven.javadoc.skip=false
- -B
- -V
- -P"module_java","test-jar","xsd","dev"
override-build: |
snapcraftctl build
unzip -o DIST/ws-documents-*.zip -d $SNAPCRAFT_PART_INSTALL/
build-packages:
- unzip
apps:
webdocs:
extensions:
- gnome-3-28
command: java $JAVA_OPTS -jar ./modules/document-generator/.build/bin/com.sensiblemetrics.api.ws.document.generator/repackage/com.sensiblemetrics.api.ws-document-generator-0.1.0-SNAPSHOT-exec.jar
environment:
JAVA_OPTS: -Xms1024m -Xmx1024m
JAVA_HOME: $SNAP/usr/lib/jvm/java-11-openjdk-amd64
PATH: $JAVA_HOME/jre/bin:$PATH
plugs:
- home
- network
- network-bind