1. 16 Dec, 2013 6 commits
  2. 15 Dec, 2013 2 commits
  3. 14 Dec, 2013 1 commit
    • Dave Syer's avatar
      Support for @Beans of type HttpMessageConverter, and Jackson specific details · c2b499c7
      Dave Syer authored
      You can contribute additional HttpMessageConverters
      by simply adding beans of that type in a Spring Boot
      context. If a bean you add is of a type that would have been included
      by default anyway (like MappingJackson2HttpMessageConverter for JSON
      conversions) then it will replace the default value. A convenience
      bean is provided of type MessageConverters (always available if you
      use the default MVC configuration) which has some useful methods to
      access the default and user-enhanced message converters (useful, for
      example if you want to manually inject them into a custom
      RestTemplate).
      
      There are also some convenient configuration shortcuts for Jackson2.
      The smallest change that might work is to just add beans of type
      Module to your context. They will be registered with the default
      ObjectMapper and then injected into the default message
      converter. In addition, if your context contains any beans of type
      ObjectMapper then all of the Module beans will be registered with
      all of the mappers.
      c2b499c7
  4. 13 Dec, 2013 2 commits
  5. 12 Dec, 2013 7 commits
  6. 11 Dec, 2013 7 commits
  7. 10 Dec, 2013 5 commits
    • Dave Syer's avatar
      Remove another annotation= attribute · cf53b764
      Dave Syer authored
      Hopefully really fixes gh-151
      cf53b764
    • Dave Syer's avatar
      Change interface of CommandFactory slightly · f2cdb8c6
      Dave Syer authored
      It's super useful to get a reference to the current SpringCli
      instance in the CommandFactory. Potentially implementations can
      react to the properties of the Cli, or wrap it into something
      more complex.
      
      ...supports the likely implementation of the REPL use
      case that @jbrisbin has been working on.
      f2cdb8c6
    • Dave Syer's avatar
      e55e8f98
    • Janne Valkealahti's avatar
      Tweaks for boot gradle plugin · 4c9c2b8d
      Janne Valkealahti authored
      Fixes gh-152.
      
      ... to ease excluding dependencies
      eckage changed to bootRepackage
      
      - Register BootRepackage order to use task foo(type: BootRepackage){}
      - Allow user to use customConfiguration
      
      configurations {
        hadoopruntime.exclude group: 'log4j'
        hadoopruntime.exclude group: 'org.slf4j'
        hadoopruntime.exclude group: 'org.apache.hadoop'
        hadoopruntime.exclude group: 'org.apache.hive'
        hadoopruntime.exclude group: 'commons-logging'
        hadoopruntime.exclude group: 'org.codehaus.jettison'
        hadoopruntime.exclude group: 'com.thoughtworks.xstream'
      }
      dependencies {
        compile "org.springframework.batch:spring-batch-core:$springBatchVersion"
        compile "org.springframework.batch:spring-batch-infrastructure:$springBatchVersion"
        compile "org.springframework.data:spring-yarn-batch:$springDataVersion"
        compile "org.springframework.data:spring-yarn-boot:$springDataVersion"
        runtime "org.springframework.data:spring-data-hadoop:$springDataVersion"
        runtime "org.springframework.data:spring-data-hadoop-core:$springDataVersion"
        runtime "log4j:log4j:$log4jVersion"
        runtime "org.slf4j:slf4j-log4j12:$slf4jVersion"
        testCompile "org.springframework.data:spring-yarn-test:$springDataVersion"
        testCompile "org.hamcrest:hamcrest-core:$hamcrestVersion"
        testCompile "org.hamcrest:hamcrest-library:$hamcrestVersion"
        hadoopruntime configurations.runtime
      }
      
      springBoot {
        backupSource = true
        customConfiguration = 'hadoopruntime'
      }
      
      task appmasterJar(type: Jar) {
        appendix = 'appmaster'
        from sourceSets.main.output
        exclude('**/*Container*')
        exclude('**/*Client*')
      }
      
      task clientJar(type: Jar) {
        appendix = 'client'
        from sourceSets.main.output
        exclude('**/*Appmaster*')
        exclude('**/*Container*')
      }
      
      task clientBoot(type: BootRepackage, dependsOn: clientJar) {
        withJarTask = clientJar
      }
      
      task appmasterBoot(type: BootRepackage, dependsOn: appmasterJar) {
        customConfiguration = "hadoopruntime"
        withJarTask = appmasterJar
      }
      
      //jar.enabled = false
      //bootRepackage.enabled = false
      
      task bootJars
      bootJars.dependsOn = [clientBoot,containerBoot,appmasterBoot]
      
      build.dependsOn(clientBoot)
      build.dependsOn(containerBoot)
      build.dependsOn(appmasterBoot)
      //build.dependsOn(bootJars)
      4c9c2b8d
    • Dave Syer's avatar
      Remove debug logging on stderr · ed8d161d
      Dave Syer authored
      ed8d161d
  8. 09 Dec, 2013 3 commits
  9. 06 Dec, 2013 1 commit
  10. 05 Dec, 2013 4 commits
  11. 04 Dec, 2013 2 commits