Created
November 7, 2014 22:29
-
-
Save Lobedan/4c8504efb3e9b83506f2 to your computer and use it in GitHub Desktop.
Spring Boot Frontend Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration | |
@EnableAutoConfiguration | |
@ComponentScan | |
public class Application { | |
public static void main(String[] args) { | |
SpringApplication.run(Application.class, args); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion") | |
classpath 'com.github.ben-manes:gradle-versions-plugin:0.5' | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
apply plugin: 'spring-boot' | |
apply plugin: 'com.github.ben-manes.versions' | |
configurations { | |
provided | |
} | |
jar { | |
baseName = 'sample' | |
version = '0.1.0' | |
} | |
repositories { | |
mavenCentral() | |
maven { url "http://mosaic4cap.de/nexus/content/repositories/mosaic-releases/" } | |
maven { url "http://mosaic4cap.de/nexus/content/repositories/mosaic-snapshots/" } | |
} | |
dependencies { | |
compile "org.springframework.boot:spring-boot-starter-web:$springBootVersion" | |
compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVersion" | |
compile "org.springframework.boot:spring-boot-starter-thymeleaf:$springBootVersion" | |
provided "org.springframework:spring-core:$springVersion" | |
provided "org.springframework:spring-beans:$springVersion" | |
provided "org.springframework:spring-web:$springVersion" | |
provided "org.springframework:spring-webmvc:$springVersion" | |
provided "org.springframework:spring-context:$springVersion" | |
compile "org.thymeleaf:thymeleaf:$thymeleafVersion" | |
compile "org.thymeleaf:thymeleaf-spring4:$thymeleafVersion" | |
compile 'org.webjars:angularjs:1.3.1' | |
compile 'org.webjars:jquery:2.1.1' | |
compile 'org.webjars:jquery-ui:1.11.1' | |
compile 'org.webjars:bootstrapvalidator:0.5.2' | |
compile 'org.webjars:font-awesome:4.2.0' | |
compile 'org.webjars:bootstrap:3.3.0' | |
compile 'org.webjars:angular-ui-bootstrap:0.11.2' | |
testCompile("junit:junit:$junitVersion") | |
} | |
task ('start', dependsOn: ['clean', 'bootRun']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
springBootVersion=1.1.8.RELEASE | |
springVersion=4.1.1.RELEASE | |
thymeleafVersion=2.1.3.RELEASE | |
junitVersion=4.11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment