Created
April 20, 2017 18:38
-
-
Save 166MMX/daaf814aef5e1af4aa66d369d64188e3 to your computer and use it in GitHub Desktop.
Spring Boot without DependencyManagementPlugin
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 { | |
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