Java

Instalar o Play Framework 2.6


Este tutorial irá mostrar como instalar o Play Framework 2.6 no Ubuntu utilizando o gerenciador de dependências SBT.

Pré-requisitos

Instalação

Em versões do Play anteriores a 2.6, era preciso baixar um arquivo play.zip e extrair seu conteúdo para utilizá-lo, porém, a partir da versão 2.6, passamos a usar o SBT para interagir com o framework.

Para começarmos, instale o SBT executando os comandos abaixo:

echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt

Validação

Agora, rode o comando em destaque para imprimir a versão do SBT, que no meu caso, era a versão 1.1.1:

sbt sbtVersion

[warn] No sbt.version set in project/build.properties, base directory: /home/bgasparotto/play-workspace
[info] Loading global plugins from /home/bgasparotto/.sbt/1.0/plugins
[info] Updating ProjectRef(uri("file:/home/bgasparotto/.sbt/1.0/plugins/"), "global-plugins")...
[info] Done updating.
[info] Set current project to play-workspace (in build file:/home/bgasparotto/play-workspace/)
[info] 1.1.1

Espero que ajude.
Até mais!

bgasparotto

Recent Posts

Python function decorator

This guide will show you how to create a Python function decorator with a few…

2 years ago

Got permission denied while trying to connect to the Docker daemon socket

This guide will show you how to fix the error Got permission denied while trying…

2 years ago

Python virtual environment on Intellij IDEA

This guide will show you how to create a Python virtual environment on Intellij IDEA…

2 years ago

Find and kill processes on Linux and Mac by port number

This tutorial will quickly show you how to to find and kill processes on Linux,…

2 years ago

Python: Relocation R_X86_64_PC32 against symbol can not be used when making a shared object Error

This guide shows a possible solution for Python error Relocation R_X86_64_PC32 against symbol can not…

2 years ago

Kubernetes useful commands

I condensed below a cheat sheet of Kubernetes useful commands. I will keep updating this…

2 years ago