Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. buildscript {
  2. ext {
  3. springBootVersion = '1.3.5.RELEASE'
  4. }
  5. repositories {
  6. mavenCentral()
  7. maven { url 'http://repo.spring.io/plugins-release' }
  8. }
  9. // dependencies for plugins
  10. dependencies {
  11. classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
  12. classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
  13. }
  14. }
  15.  
  16.  
  17. apply plugin: 'java'
  18. apply plugin: 'idea'
  19. apply plugin: 'spring-boot'
  20. apply plugin: 'war'
  21. apply plugin: 'propdeps'
  22. apply plugin: 'propdeps-maven'
  23. apply plugin: 'propdeps-idea'
  24.  
  25. configurations.all {
  26. // Check for updates every build
  27. resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
  28. }
  29.  
  30.  
  31. jar {
  32. baseName = 'someproject'
  33. version = '0.0.1-SNAPSHOT'
  34. }
  35.  
  36. war {
  37. baseName = "someproject"
  38. version = '0.0.1-SNAPSHOT'
  39. }
  40.  
  41. sourceCompatibility = 1.8
  42. targetCompatibility = 1.8
  43.  
  44. repositories {
  45. mavenCentral()
  46. maven { url "https://jitpack.io" }
  47. maven {
  48. url 'http://nexus.example.com:8081/nexus/content/repositories/java-libs-snapshots/'
  49. credentials {
  50. username "someuser"
  51. password "somepassword"
  52. }
  53. }
  54. }
  55.  
  56. // enables to run with dev profile: $ gradle local bootRun
  57. task local << {
  58. bootRun.systemProperty 'spring.profiles.active', 'local'
  59. }
  60.  
  61. bootRun {
  62. jvmArgs = ["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"]
  63. }
  64.  
  65. dependencies {
  66. compile 'mysql:mysql-connector-java'
  67. compile 'org.springframework.boot:spring-boot-starter-web'
  68. compile group: "pl.example", name: "name", version: "0.7.6.1-SNAPSHOT", changing: true
  69. compile 'org.jadira.usertype:usertype.core:5.0.0.GA'
  70. compile group: 'com.rometools', name: 'rome', version: '1.6.0'
  71. compile group: 'org.jsoup', name: 'jsoup', version: '1.9.2'
  72. compile 'org.hibernate:hibernate-search:5.5.3.Final'
  73. compile 'org.projectlombok:lombok:1.16.6'
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement