Build #513

Gradle build for Spring Batch

Build: #513 failed Changes by Sam Brannen

Build result summary

Details

Completed
Duration
3 minutes
Labels
None
Agent
bamboo-13.af.pivotal.io
Revision
d9bbb0ecda8c918ec4071a45865f5c4daf842225 d9bbb0ecda8c918ec4071a45865f5c4daf842225
Fixed in
#515 (Changes by Mahmoud Ben Hassine)

No failed tests found, a possible compilation error occurred.

Responsible

Code commits

Author Commit Message Commit date
Sam Brannen Sam Brannen d9bbb0ecda8c918ec4071a45865f5c4daf842225 d9bbb0ecda8c918ec4071a45865f5c4daf842225 Simplify BatchTestContextCustomizerFactory
Since @SpringBatchTest is effectively a marker annotation from the
perspective of BatchTestContextCustomizerFactory, there is no need
to retrieve the merged, synthesized annotation.

Checking for the presence of @SpringBatchTest is sufficient.

Error summary for Default Job

The job generated some errors, drill down into the full build log for more details.

Could not find test result reports in the /opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1 directory.
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateItemReaderHelper.java:23: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/MongoItemReader.java:26: warning: [deprecation] JSON in com.mongodb.util has been deprecated
import com.mongodb.util.JSON;
                       ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateItemReaderHelper.java:123: warning: [deprecation] Query in org.hibernate has been deprecated
                Query query = createQuery();
                ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateItemReaderHelper.java:135: warning: [deprecation] Query in org.hibernate has been deprecated
        public Query createQuery() {
               ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateItemReaderHelper.java:222: warning: [deprecation] Query in org.hibernate has been deprecated
                Query query = createQuery();
                ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilder.java:43: warning: [rawtypes] found raw type: RepositoryMethodReference
        private RepositoryMethodReference repositoryMethodReference;
                ^
  missing type arguments for generic class RepositoryMethodReference<T>
  where T is a type-variable:
    T extends Object declared in class RepositoryMethodReference
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilder.java:90: warning: [rawtypes] found raw type: RepositoryMethodReference
        public RepositoryItemWriterBuilder<T> repository(RepositoryItemWriterBuilder.RepositoryMethodReference repositoryMethodReference) {
                                                                                    ^
  missing type arguments for generic class RepositoryMethodReference<T>
  where T is a type-variable:
    T extends Object declared in class RepositoryMethodReference
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilder.java:104: warning: [unchecked] unchecked conversion
                        this.repository = this.repositoryMethodReference.getRepository();
                                                                                      ^
  required: CrudRepository<T,?>
  found:    CrudRepository
  where T is a type-variable:
    T extends Object declared in class RepositoryItemWriterBuilder
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/MongoItemReader.java:264: warning: [deprecation] JSON in com.mongodb.util has been deprecated
                return JSON.serialize(values.get(index));
                       ^
9 warnings
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ClasspathXmlApplicationContextsFactoryBean.java:27: warning: [deprecation] PropertyPlaceholderConfigurer in org.springframework.beans.factory.config has been deprecated
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
                                               ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/AbstractApplicationContextFactory.java:34: warning: [deprecation] PropertyPlaceholderConfigurer in org.springframework.beans.factory.config has been deprecated
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
                                               ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:232: warning: [overloads] processor(ItemProcessor<? super I,? extends O>) in SimpleStepBuilder is potentially ambiguous with processor(Function<? super I,? extends O>) in SimpleStepBuilder
        public SimpleStepBuilder<I, O> processor(ItemProcessor<? super I, ? extends O> processor) {
                                       ^
  where I,O are type-variables:
    I extends Object declared in class SimpleStepBuilder
    O extends Object declared in class SimpleStepBuilder
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/AbstractApplicationContextFactory.java:75: warning: [deprecation] PropertyPlaceholderConfigurer in org.springframework.beans.factory.config has been deprecated
                beanFactoryPostProcessorClasses.add(PropertyPlaceholderConfigurer.class);
                                                    ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/SpringAutowiredAnnotationBeanPostProcessor.java:264: warning: [deprecation] postProcessPropertyValues(PropertyValues,PropertyDescriptor[],Object,String) in InstantiationAwareBeanPostProcessorAdapter has been deprecated
    public PropertyValues postProcessPropertyValues(
                          ^
5 warnings
/opt/users/bamboo/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.2.0.BUILD-SNAPSHOT/5f898b92e73b0e83ead25d959b358f14d4a26a12/spring-core-5.2.0.BUILD-SNAPSHOT.jar(org/springframework/lang/Nullable.class): warning: Cannot find annotation method 'when()' in type 'Nonnull': class file for javax.annotation.Nonnull not found
warning: unknown enum constant When.MAYBE
  reason: class file for javax.annotation.meta.When not found
/opt/users/bamboo/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.2.0.BUILD-SNAPSHOT/5f898b92e73b0e83ead25d959b358f14d4a26a12/spring-core-5.2.0.BUILD-SNAPSHOT.jar(org/springframework/lang/NonNullApi.class): warning: Cannot find annotation method 'value()' in type 'TypeQualifierDefault': class file for javax.annotation.meta.TypeQualifierDefault not found
3 warnings
warning: unknown enum constant When.MAYBE
  reason: class file for javax.annotation.meta.When not found
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/RepositoryItemReaderTests.java:244: error: incompatible types: String cannot be converted to List<String>
                PageRequest request = PageRequest.of(1, 2, new Sort(Direction.ASC, "id"));
                                                                                   ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/RepositoryItemReaderTests.java:250: error: incompatible types: String cannot be converted to List<String>
                request = PageRequest.of(2, 2, new Sort(Direction.ASC, "id"));
                                                                       ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/RepositoryItemReaderTests.java:271: error: incompatible types: String cannot be converted to List<String>
                PageRequest request = PageRequest.of(1, 2, new Sort(Direction.ASC, "id"));
                                                                                   ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/RepositoryItemReaderTests.java:277: error: incompatible types: String cannot be converted to List<String>
                request = PageRequest.of(2, 2, new Sort(Direction.ASC, "id"));
                                                                       ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/RepositoryItemReaderTests.java:302: error: incompatible types: String cannot be converted to List<String>
                PageRequest request = PageRequest.of(0, 2, new Sort(Direction.ASC, "id"));
                                                                                   ^
/opt/bamboo-home/xml-data/build-dir/BATCH-GRAD-JOB1/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/RepositoryItemReaderTests.java:308: error: incompatible types: String cannot be converted to List<String>
                request = PageRequest.of(1, 2, new Sort(Direction.ASC, "id"));
                                                                       ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
6 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spring-batch-infrastructure:compileTestJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 5s