Commit Graph

52 Commits

Author SHA1 Message Date
Glenn Renfro
1a7113f37b Updated to reset vesions to Snapshot and to fix a checkstyle 2019-11-04 09:14:37 -05:00
Glenn Renfro
7d7183e7f2 Updating version for 2.2.0.M2 2019-08-02 08:48:46 -04:00
Glenn Renfro
16f68020fb Update dependency versions 2019-05-07 13:54:00 -04:00
Glenn Renfro
fd8ab15238 Updated all dependencies for M1 RELEASE
Updated to Spring Cloud Build 2.2.0.M1
2019-04-15 15:11:28 -04:00
Spring Operator
2bff013b83 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 204 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Updated Spring Cloud Build dependency

this was so that we can get the latest spring-cloud-build
2019-03-21 16:34:26 -04:00
Spring Operator
0ea5070050 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* [ ] http://xslthl.sf.net (301) with 4 occurrences could not be migrated:
   ([https](https://xslthl.sf.net) result AnnotatedConnectException).
* [ ] http://exslt.org/common (404) with 1 occurrences could not be migrated:
   ([https](https://exslt.org/common) result SSLHandshakeException).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* [ ] http://waffle.io/spring-cloud/spring-cloud-task (301) with 2 occurrences migrated to:
  https://waffle.io/spring-cloud/spring-cloud-task ([https](https://waffle.io/spring-cloud/spring-cloud-task) result ReadTimeoutException).
* [ ] http://myURI (UnknownHostException) with 1 occurrences migrated to:
  https://myURI ([https](https://myURI) result UnknownHostException).
* [ ] http://oops (UnknownHostException) with 1 occurrences migrated to:
  https://oops ([https](https://oops) result UnknownHostException).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://EditorConfig.org with 1 occurrences migrated to:
  https://EditorConfig.org ([https](https://EditorConfig.org) result 200).
* [ ] http://docs.spring.io/spring-boot/docs/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-boot/docs/ ([https](https://docs.spring.io/spring-boot/docs/) result 200).
* [ ] http://docs.spring.io/spring-boot/docs/current/reference/html/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-boot/docs/current/reference/html/ ([https](https://docs.spring.io/spring-boot/docs/current/reference/html/) result 200).
* [ ] http://docs.spring.io/spring-cloud-task/docs/ with 2 occurrences migrated to:
  https://docs.spring.io/spring-cloud-task/docs/ ([https](https://docs.spring.io/spring-cloud-task/docs/) result 200).
* [ ] http://docs.spring.io/spring-security/site/docs/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-security/site/docs/ ([https](https://docs.spring.io/spring-security/site/docs/) result 200).
* [ ] http://docs.spring.io/spring/docs/ with 2 occurrences migrated to:
  https://docs.spring.io/spring/docs/ ([https](https://docs.spring.io/spring/docs/) result 200).
* [ ] http://github.com/ with 3 occurrences migrated to:
  https://github.com/ ([https](https://github.com/) result 200).
* [ ] http://stackoverflow.com with 1 occurrences migrated to:
  https://stackoverflow.com ([https](https://stackoverflow.com) result 200).
* [ ] http://stackoverflow.com/tags/spring-cloud-task with 1 occurrences migrated to:
  https://stackoverflow.com/tags/spring-cloud-task ([https](https://stackoverflow.com/tags/spring-cloud-task) result 200).
* [ ] http://start.spring.io/ with 1 occurrences migrated to:
  https://start.spring.io/ ([https](https://start.spring.io/) result 200).
* [ ] http://ant.apache.org/manual with 1 occurrences migrated to:
  https://ant.apache.org/manual ([https](https://ant.apache.org/manual) result 301).
* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* [ ] http://docs.spring.io/spring-amqp/docs/current/api/org/springframework/amqp with 1 occurrences migrated to:
  https://docs.spring.io/spring-amqp/docs/current/api/org/springframework/amqp ([https](https://docs.spring.io/spring-amqp/docs/current/api/org/springframework/amqp) result 301).
* [ ] http://docs.spring.io/spring-cloud-task/docs/current-SNAPSHOT/reference/html/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-cloud-task/docs/current-SNAPSHOT/reference/html/ ([https](https://docs.spring.io/spring-cloud-task/docs/current-SNAPSHOT/reference/html/) result 301).
* [ ] http://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data ([https](https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data) result 301).
* [ ] http://docs.spring.io/spring-data/jpa/docs/current/api/org/springframework/data/jpa with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/jpa/docs/current/api/org/springframework/data/jpa ([https](https://docs.spring.io/spring-data/jpa/docs/current/api/org/springframework/data/jpa) result 301).
* [ ] http://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb ([https](https://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb) result 301).
* [ ] http://docs.spring.io/spring-data/rest/docs/current/api/org/springframework/data/rest with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/rest/docs/current/api/org/springframework/data/rest ([https](https://docs.spring.io/spring-data/rest/docs/current/api/org/springframework/data/rest) result 301).
* [ ] http://raw.github.com/ with 1 occurrences migrated to:
  https://raw.github.com/ ([https](https://raw.github.com/) result 301).
* [ ] http://www.gradle.org/docs/current/userguide with 1 occurrences migrated to:
  https://www.gradle.org/docs/current/userguide ([https](https://www.gradle.org/docs/current/userguide) result 301).

# Ignored
These URLs were intentionally ignored.

* http://docbook.org/ns/docbook with 4 occurrences
* http://docbook.sourceforge.net/xmlns/l10n/1.0 with 2 occurrences
* http://maven.apache.org/POM/4.0.0 with 1 occurrences
* http://www.w3.org/1999/XSL/Format with 2 occurrences
* http://www.w3.org/1999/XSL/Transform with 7 occurrences
* http://www.w3.org/1999/xlink with 1 occurrences
2019-03-20 16:10:18 -05:00
Glenn Renfro
03d9a980e9 Cleanup from Checkstyle changes
resolves #511

* Sets the appropriate copyright dates
* Updates some docs
2019-02-13 12:21:14 -05:00
Marcin Grzejszczak
60f1e21d03 Added checkstyle 2019-02-03 19:27:07 +01:00
Glenn Renfro
30399dbb57 Established @EnableTask to create instance of TaskLifecycle Bean
resolves #494
2018-12-10 16:07:31 -05:00
Glenn Renfro
8e1d38a76a Cleanup code smells reported by Sonar
This is a first pass are removing some of the code smells.
Many reported code smells were ignored in this effort
2018-11-27 16:09:17 -05:00
Glenn Renfro
f083d7a7ff Corrects code to remove bug reports from Sonar Report
Resolves #478
2018-11-12 14:54:47 -05:00
Glenn Renfro
f772956680 Binary defaults for conditional metadata now used Binary Type
Before they were of String type

resolves #467
2018-11-02 16:21:01 -04:00
Glenn Renfro
c7ef7fbff4 Starting to move to java 11[Do Not Merge]
All version changes are present.

Fixed all Java-Doc Errors and warnings

* Due to the stricter nature of the javadoc compiler we can't wrap <ul> / <ui> in <p>
* We will also need to Push up a test app for taklauncher to work with.   The old one fails to start now.   Or use one of the task starters possibly.
* Built on the work from TASK-439C.   Wait for that merge before merging this one.
* Replaced applicationFailedEvent class attribute with applicaitonFailedException
* Also polished the app used by the taskLauncherSink integration test
2018-11-01 15:23:17 -04:00
Michael Minella
90c88c52e6 Polish 2018-11-01 10:45:15 -05:00
Glenn Renfro
d2bc2530cc Update Task to BOOT 2.1.M1
Migrating to use ApplicationContextRunner or ImportAutoConfiguration with SpringApp.run, instead of SpringApplicationBuilder, because builder does not handle AutoConfiguration properly

SimpleTaskAutoConfiguration now has an annotation AutoConfigureBefore the BatchTaskAutoConfig so that it is processed prior.  THis is so that that BatchTaskAutoConfig can create the appropriate beans

SimpleTaskAutoConfiguration has new annotations so that it is AutoConfigured after BindingServiceConfiguration and after SimpleTaskAutoConfiguration.  This is so that it does not attempt to start emitting messages before stream is ready and it can create the appropriate beans after SimpleTaskAutoConfiguration has run.

Renamed SimpleTaskConfiguration to SimpleTaskAutoConfiguration.

Task version updated to  2.1.0

Added missing headers

Updated documentation.

Deprecated EnableTask

Added ability to disable Task autoconfiguration.

Removed @EnableTask from tests

Resolves #439
Resolves #440
Resolves #448
Resolves #466
2018-11-01 10:43:31 -05:00
Glenn Renfro
d2c90c5256 Updated to add metadata for Conditionals
Also renamed camel-cased properties to cononical format.

resolves #442
2018-10-26 09:42:14 +01:00
Glenn Renfro
7843ba2edb Updated TaskLauncherSink to be able to use SCST 2.0
* Updated tests
 - to handle additional cases
 - removed `now` invalid tests
* removed logging payload from the TaskLauncher
* handles message instead TaskLaunchRequestPOJO

resolves #385
2018-02-13 12:19:11 -06:00
Michael Minella
6426cfea7e Polish 2018-02-13 09:28:22 -06:00
Glenn Renfro
76309b89ff Removed code that was marked as deprecated.
Also updated test that tested deprecated code.

resolves #366
2018-02-13 09:28:09 -06:00
Glenn Renfro
3ad9efe3fe Updated tests to remove deprecated code from tests
* cleanup removing unused headers
* Updated asserts in code base that needed messages (marked as deprecated)
* left one test that was testing a deprecated constructor.  When that code is removed we can remove that test.
* some other cleanup

resolves #338
2018-01-18 11:42:37 -06:00
Glenn Renfro
e279846e7e Updated Spring Cloud Task to latest releases
Updated to remove all commons-logging-api dependencies to resolve  logging issue.

Updated to handle 2.0.0.M3 Spring Cloud Stream

resovles #347

Changes based on code review
2017-11-01 09:12:46 -04:00
Glenn Renfro
d95f46002f Migrate Task to Spring Cloud Build 2.0.x
resolves #313
2017-07-12 11:38:00 -05:00
Ali Shahbour
450de51d0c Add Ordered interface to all event listeneres
changes requested by cppwfs

Fix Constructors duplication

Add @author

Some cleanup on chunk listener

Updated chunk listener to send message before and after chunk.
Fixed Links for JavaDocs to prevent failure on javadoc build.
Updated tests to support new chunk messages.
2017-03-31 09:15:28 -04:00
Glenn Renfro
4e68adf5fa Updated samples to use latest boot
Update integration tests to use latest stream paradigm
Update tests to be in compliance with 1.5.2.

resolves #289
2017-03-14 09:49:31 -05:00
Michael Minella
32b0278930 Updated for deployer updates
In the release process of SCDF, it was identified that Spring Cloud
Deployer had been upgraded to JDK 1.8 which was not desirable at the
given time.  As part of the rollback, the deployer implementations
provided remained at 1.8, but the SPI was rolled back to 1.7.  This
commit addresses the difference between the different versions as well
as updates the code to use the latest `TaskLauncher` code.
2016-11-21 16:21:33 -06:00
Glenn Renfro
986a2a098d Removed TaskLauncherConfiguration
Added spi and boot log starter to pom for streams
Changed deployer-local on main project pom to be test scope
2016-11-21 16:33:05 -05:00
Glenn Renfro
4a1a2c3c88 Add Application Name to TaskLaunchRequest for launched task
resolves #238
2016-11-03 15:50:21 -05:00
Glenn Renfro
d6e224f2ef Updated based on Code Review 2016-11-01 17:32:22 -04:00
Glenn Renfro
eff83a1897 Added More tests. 2016-11-01 17:32:22 -04:00
Glenn Renfro
1611c28768 Adding a few more tests.
Added unit tests to classes that had no coverage.
Added unit tests to classes bump up coverage.
2016-11-01 17:32:22 -04:00
Michael Minella
17e4250586 Checks for invalid ExecutionId in the TaskLifeCycleListener
resolves #115
* Fixes bug where if the user set the environment variable and commandline args a unique constraint would fire.
* Updated docs
* Removed deprecation
* Fixed version number for integration test.

Added integration tests for externally generated task executions

Add externalExecutionId

resolves #80
2016-10-12 12:45:29 -05:00
Glenn Renfro
2bfc4780c7 Updating BatchListener Unit Tests
resolves #211
 Please enter the commit message for your changes. Lines starting
2016-10-11 12:18:35 -05:00
Glenn Renfro
d657b22b79 Updated dependencies and refactored code.
* Updated spring cloud streams to 1.1.0.RELEASE
* Updated cloud dependencies parent to 1.2.1.RELEASE
* Updated samples to 1.4.1
* Updated Tests to take advantage of 1.4 boot test annotations
* Removed @Bindings as they are deprecated
* Updated BatchApplication test to pass.  Boot no longer logs environment values.  So count was reduced from 3 to 1

resolves #218, #221

renamed spring-cloud-task-starter to spring-cloud-starter-task
2016-10-11 08:38:38 -05:00
Glenn Renfro
3f83b33104 Updated Versions for this build 2016-09-08 18:33:50 -04:00
Glenn Renfro
0aca771f5d Added integration tests for TaskLauncherSink
resolves #174

Added H2 dependency and fixed BatchExecutionEventTest to use SimpleTaskConfigurationClass

Check Task Repo to determine if task was launched successfully

H2 now uses a random port

Now uses TaskExplorer
2016-07-26 12:37:15 -05:00
Glenn Renfro
761df8a598 Updated version numbers
Reset the ResourceLoader to DeploymentResourceLoader
Adjusted the poms to not run deploy for Samples as well as integration tests
Used default constructor
2016-07-07 16:50:58 -05:00
Michael Minella
7f1ece96e6 Removed unused default 2016-07-06 15:52:21 -05:00
Michael Minella
57e9d4dcae Refactored dependency management
Created a Spring Boot starter that can be used to configure Spring Cloud
Task and it's related functionality.

Updates per code review

Removed autowiring of app context

Refactored DeployerPartitionHandler to correctly use environment variables

Exposed deployment properties of TaskLauncher

Exposed deployment properties via the TaskLaunchRequest

Updated based on code review
2016-07-06 16:15:13 -04:00
Michael Minella
8aa02da2cd Renamed properties to better be grouped in YAML
Updated Unit tests to pass
2016-06-27 19:50:59 -04:00
Glenn Renfro
43943dcae5 Fixes BeanNotFoundException when disabling BatchEventListeners.
Resolves #153
2016-06-27 09:28:10 -05:00
Michael Minella
30fe0602d0 Update dependencies to latest
This commit brings the dependencies for Spring Cloud Task up to the
latest where appropriate prior to the 1.0.0.RC1 release.
2016-06-14 12:38:08 -05:00
Michael Minella
77fdfbdbc0 Refactored the use of the name parameters to be arguments
This PR refactors the use of the term parameters to arguments to be
consistent with how the component is utilized within Spring Cloud Data
Flow.
2016-06-09 09:39:14 -05:00
Glenn Renfro
7f53c7d9f7 Update TaskLaunchRequest to use URI
Update examples to use apps instead of modules

resolves spring-cloud/spring-cloud-task#146
2016-05-24 09:29:45 -04:00
Glenn Renfro
ef1c027146 Replaces Redis as RabbitMQ for test binder.
resolves spring-cloud/spring-cloud-task#134
2016-05-18 18:46:26 -05:00
Glenn Renfro
7d74e05509 Added RedisTestSupport to the EventJobExecutionTests 2016-05-10 13:31:17 -04:00
Glenn Renfro
fc3dcffe4b Added ConditionalOnProperty for batch event listeners
Resolves spring-cloud/spring-cloud-task#130
2016-05-10 13:31:17 -04:00
Ilayaperumal Gopinathan
6073493175 Fix autoconfiguration class entries
- This will make sure to invoke all the auto configuration classes

Resolves #135
2016-05-06 16:52:25 +05:30
Michael Minella
bf52aee188 Code review cleanup 2016-04-25 23:05:31 -05:00
Michael Minella
43d869f726 Add Job Event Messaging to tasks.
* Added test for sample and cleanup

* Added skipEventsListener

* Added new message format.

* Added integration tests.

* Updated application.properties to add json content type

resolves spring-cloud/spring-cloud-task#119
2016-04-25 23:05:07 -05:00
Ilayaperumal Gopinathan
ced5a3aa87 Add integration test for task events
This resolves #126

Use RedisConnectionFactory from RedisTestSupport

Add sub-project for integration tests

 - Since there are overlaps with the integration tests and the unit tests running together (using redis binder vs test support binder), it is better to move the integration tests
to a separate sub-project

Little cleanup
2016-04-20 10:03:30 -04:00