• Stars
    star
    236
  • Rank 170,480 (Top 4 %)
  • Language
    Scala
  • License
    Apache License 2.0
  • Created almost 11 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A set of sbt-native-pakager examples

Goal

This is a small collection of sbt-native-packager examples. Each example is very small and should be easy to understand. Pick the ones you need and tailor your packaging process.

Not all examples are 100% tested. Just open an issue if something doesn't work

Examples

Currently all examples are tested for Debian only. Feel free to correct and contribute.

Application configuration

Your application has an external configuration, which you want to change and the application should pick up this changes.

Requirements

How it's done

Typesafe config uses the system property config.file to pass in a configuration location. So you don't need to add a folder to the classpath, which could be a potential security risk.

Project

You can find a working example at application-conf

Log4j configuration

This is related to the Application configuration. This time we use log4j.

Requirements

  • Linux OS (debian/rpm)
  • Log4j 2 (works in a similar way with 1.x)

How it's done

Log4j uses the system property log4j.configurationFile to pass in a configuration location. So you don't need to add a folder to the classpath, which could be a potential security risk.

Log4j 2 as also a cool auto reconfigurate feature, which can come in very handy.

Project

You can find a working example at log4j-conf

Custom Startup Parameters

A small example how to configure your startup parameters with SBT Native Packager. You'll see how to add java system properties and application arguments. We also change the -Xmx and -Xms settings.

Requirements

  • Linux OS (debian/rpm)

How it's done

Create a file src/templates/etc-default and fill it with the content you need.

Project

You can find a working example at startscript-parameters

Links

More Repositories

1

sbt-graphql

SBT plugin to generate and validate graphql schemas written with Sangria
Scala
95
star
2

activator-akka-docker

How to run an akka cluster within docker
Scala
54
star
3

activator-play-cluster-sample

Demonstrates how to watch an akka cluster with a play frontend
Scala
46
star
4

activator-akka-kamon

Typesafe Activator for Akka Kamon
HTML
41
star
5

sbt-slick

Slick Code Generation Plugin
Scala
12
star
6

jama-osgi

Jama - Java Matrix OSGi version with tycho build
Java
12
star
7

finch-scalajs-twirl

Example project on how to integrate finch, scalajs and twirl templates
Scala
8
star
8

e4GeminiJPA

Dependency Injection for Gemini JPA
Java
6
star
9

sbt-autoplugins-tutorial

Tutorial for Autoplugins
Scala
5
star
10

sbt-poop

The best SBT plugin evar
Scala
5
star
11

org.eclipse.gemini.ext.di

Java
5
star
12

sbt-native-package-server

Activator template for sbt-native-packager
Shell
4
star
13

playframework-requirejs-multipage

A small example how to use playframework 2.2.x with RequireJS
JavaScript
4
star
14

scaladays-berlin-2018

ScalaDays 2018 Code Examples
Scala
2
star
15

sz-reader

Android Reader App for Sueddeutsche Zeitung
Java
2
star
16

tycho

Maven tycho build with scala, java, akka and eclipse sapphire apt
Java
2
star
17

config4cli

Java
2
star
18

nfo-maker

NFO Maker App
Java
2
star
19

weka-osgi

Tycho build for the WEKA datamining library
1
star
20

akka-architecture

Sample architecture for akka applications
Scala
1
star
21

node-scalajs

Example scalajs application compiled to a node application
Scala
1
star
22

joda-osgi

Providing p2 update site for joda.org bundles
XSLT
1
star
23

tycho-version-sync

Syncs MANIFEST.MF, build.properties and pom.xml for tycho builds
Java
1
star
24

sbt-paxexam-example

Howto test OSGi environments with paxexam and sbt
Scala
1
star
25

akka-http-elasticsearch

akka-http-elasticsearch
HTML
1
star
26

java-futures-to-scala-actors

Step-by-step transition from futures in java to akka actors in scala
Scala
1
star