Skip to content

Instantly share code, notes, and snippets.

@166MMX
Created April 20, 2017 18:38
Show Gist options
  • Save 166MMX/daaf814aef5e1af4aa66d369d64188e3 to your computer and use it in GitHub Desktop.
Save 166MMX/daaf814aef5e1af4aa66d369d64188e3 to your computer and use it in GitHub Desktop.
Spring Boot without DependencyManagementPlugin
buildscript {
ext {
springBootVersion = '1.5.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
// http://mvnrepository.com/artifact/org.springframework.boot/spring-boot-gradle-plugin
classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: springBootVersion
}
}
//apply plugin: 'org.springframework.boot'
extensions.create 'springBoot', org.springframework.boot.gradle.SpringBootPluginExtension.class, project
project.plugins.apply(JavaPlugin.class)
new org.springframework.boot.gradle.agent.AgentPluginFeatures().apply(project)
new org.springframework.boot.gradle.repackage.RepackagePluginFeatures().apply(project)
new org.springframework.boot.gradle.run.RunPluginFeatures().apply(project)
//new org.springframework.boot.gradle.dependencymanagement.DependencyManagementPluginFeatures().apply(project)
//project.tasks.withType(JavaCompile.class).all(new org.springframework.boot.gradle.plugin.SpringBootPlugin.SetUtf8EncodingAction())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment