Skip to content

Commit

Permalink
Enable deployment as war
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixBalletbo committed Mar 15, 2019
1 parent 55e226e commit 0ebec5f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
12 changes: 10 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ buildscript {
}

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.asciidoctor.convert'
apply plugin: 'war'

group = 'com.upc.gessi.qrapids'
version = '0.0.1'
sourceCompatibility = '1.8'
version = '0.1'
sourceCompatibility = 1.8

war {
baseName = 'qr-si_assessment-rest'
version = version
enabled = true
}

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class SiAssessmentApplication {
public class SiAssessmentApplication extends SpringBootServletInitializer {

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(SiAssessmentApplication.class);
}

public static void main(String[] args) {
SpringApplication.run(SiAssessmentApplication.class, args);
Expand Down

0 comments on commit 0ebec5f

Please sign in to comment.