@@ -6,48 +6,48 @@ plugins {
66// Tasks for working with Confluent Platform running locally.
77// See "Testing with Confluent Platform" in CONTRIBUTING.md
88
9- task loadDatagenPurchasesConnector ( type : Exec ) {
9+ tasks . register( " loadDatagenPurchasesConnector " , Exec ) {
1010 description = " Load an instance of the Datagen connector into Confluent Platform for sending JSON documents to " +
1111 " the 'purchases' topic"
1212 commandLine " curl" , " -s" , " -X" , " POST" , " -H" , " Content-Type: application/json" ,
1313 " --data" , " @ConfluentConnectorConfigs/datagen-purchases-source.json" , " http://localhost:8083/connectors"
1414}
1515
16- task loadMarkLogicPurchasesSinkConnector ( type : Exec ) {
16+ tasks . register( " loadMarkLogicPurchasesSinkConnector " , Exec ) {
1717 description = " Load an instance of the MarkLogic Kafka connector into Confluent Platform for writing data to " +
1818 " MarkLogic from the 'purchases' topic"
1919 commandLine " curl" , " -s" , " -X" , " POST" , " -H" , " Content-Type: application/json" ,
2020 " --data" , " @ConfluentConnectorConfigs/marklogic-purchases-sink.json" , " http://localhost:8083/connectors"
2121}
2222
23- task loadMarkLogicPurchasesSourceConnector ( type : Exec ) {
23+ tasks . register( " loadMarkLogicPurchasesSourceConnector " , Exec ) {
2424 description = " Load an instance of the MarkLogic Kafka connector into Confluent Platform for reading rows from " +
2525 " the demo/purchases view"
2626 commandLine " curl" , " -s" , " -X" , " POST" , " -H" , " Content-Type: application/json" ,
2727 " --data" , " @ConfluentConnectorConfigs/marklogic-purchases-source.json" , " http://localhost:8083/connectors"
2828}
2929
30- task loadMarkLogicAuthorsSourceConnector ( type : Exec ) {
30+ tasks . register( " loadMarkLogicAuthorsSourceConnector " , Exec ) {
3131 description = " Loads a source connector that retrieves authors from the citations.xml file, which is also used for " +
3232 " all the automated tests"
3333 commandLine " curl" , " -s" , " -X" , " POST" , " -H" , " Content-Type: application/json" ,
3434 " --data" , " @ConfluentConnectorConfigs/marklogic-authors-source.json" , " http://localhost:8083/connectors"
3535}
3636
37- task loadMarkLogicEmployeesSourceConnector ( type : Exec ) {
37+ tasks . register( " loadMarkLogicEmployeesSourceConnector " , Exec ) {
3838 commandLine " curl" , " -s" , " -X" , " POST" , " -H" , " Content-Type: application/json" ,
3939 " --data" , " @ConfluentConnectorConfigs/marklogic-employees-source.json" , " http://localhost:8083/connectors"
4040}
4141
42- task insertAuthors ( type : Test ) {
42+ tasks . register( " insertAuthors " , Test ) {
4343 useJUnitPlatform()
4444 systemProperty " AUTHOR_IDS" , authorIds
4545 description = " Insert a new author into the data-hub-STAGING database via a new citations XML document; " +
4646 " use e.g. -PauthorIds=7,8,9 to insert 3 new authors with IDs of 7, 8, and 9"
4747 include " com/marklogic/kafka/connect/source/debug/InsertAuthorsTest.class"
4848}
4949
50- task loadMarkLogicDHPurchasesSinkConnector ( type : Exec ) {
50+ tasks . register( " loadMarkLogicDHPurchasesSinkConnector " , Exec ) {
5151 description = " Load an instance of the MarkLogic Kafka connector into Confluent Platform for writing data to " +
5252 " MarkLogic from the 'purchases' topic"
5353 commandLine " curl" , " -s" , " -X" , " POST" , " -H" , " Content-Type: application/json" ,
0 commit comments