From ea0e1e304d4c02f7f2027cbae936fff9f5065db4 Mon Sep 17 00:00:00 2001 From: Abhinav Sharma Date: Sun, 3 Mar 2024 19:13:43 -0300 Subject: [PATCH] update the version, add logs and update license [ci skip] --- gradle.properties | 2 +- plugins/build.gradle | 5 ++--- .../src/main/nextflow/nomad/NomadConfig.groovy | 4 ++-- .../nomad/executor/NomadExecutor.groovy | 17 ++++++++++++++++- .../nomad/executor/NomadScriptLauncher.groovy | 17 +++++++++++++++++ .../nextflow/nomad/executor/NomadService.groovy | 4 ++-- .../nomad/executor/NomadTaskHandler.groovy | 17 ++++++++++++++++- .../src/test/nextflow/nomad/NomadDSLSpec.groovy | 2 ++ 8 files changed, 58 insertions(+), 10 deletions(-) diff --git a/gradle.properties b/gradle.properties index 8766f31..c623543 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=0.0.2-rc1 \ No newline at end of file +version=0.0.2 \ No newline at end of file diff --git a/plugins/build.gradle b/plugins/build.gradle index 6b08277..644098c 100644 --- a/plugins/build.gradle +++ b/plugins/build.gradle @@ -1,8 +1,7 @@ /* + * Copyright 2023-, Stellenbosch University, South Africa * Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain - * Copyright 2023, Stellenbosch University, South Africa - * Copyright 2022, Center for Medical Genetics, Ghent - * + * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/plugins/nf-nomad/src/main/nextflow/nomad/NomadConfig.groovy b/plugins/nf-nomad/src/main/nextflow/nomad/NomadConfig.groovy index 624efc2..bf6bacf 100644 --- a/plugins/nf-nomad/src/main/nextflow/nomad/NomadConfig.groovy +++ b/plugins/nf-nomad/src/main/nextflow/nomad/NomadConfig.groovy @@ -1,6 +1,6 @@ /* - * Copyright 2023, Stellenbosch University, South Africa - * Copyright 2022, Center for Medical Genetics, Ghent + * Copyright 2023-, Stellenbosch University, South Africa + * Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadExecutor.groovy b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadExecutor.groovy index a7115f4..d4e59bb 100644 --- a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadExecutor.groovy +++ b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadExecutor.groovy @@ -1,4 +1,19 @@ - +/* + * Copyright 2023-, Stellenbosch University, South Africa + * Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package nextflow.nomad.executor import groovy.transform.CompileStatic diff --git a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadScriptLauncher.groovy b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadScriptLauncher.groovy index 2a8b693..1f37061 100644 --- a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadScriptLauncher.groovy +++ b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadScriptLauncher.groovy @@ -1,3 +1,20 @@ +/* + * Copyright 2023-, Stellenbosch University, South Africa + * Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package nextflow.nomad.executor diff --git a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadService.groovy b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadService.groovy index 8cf84a4..ba73970 100644 --- a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadService.groovy +++ b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadService.groovy @@ -1,7 +1,6 @@ /* + * Copyright 2023-, Stellenbosch University, South Africa * Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain - * Copyright 2023, Stellenbosch University, South Africa - * Copyright 2022, Center for Medical Genetics, Ghent * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,6 +51,7 @@ class NomadService implements Closeable{ ApiClient apiClient = new ApiClient() apiClient.basePath = config.clientOpts.address if( config.clientOpts.token ){ + log.debug "[NOMAD BATCH] Creating Nomad connection using token: ${config.clientOpts.token?.substring(0,5)}.." apiClient.apiKey = config.clientOpts.token } this.jobsApi = new JobsApi(apiClient); diff --git a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadTaskHandler.groovy b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadTaskHandler.groovy index 0ed6259..3390b4d 100644 --- a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadTaskHandler.groovy +++ b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadTaskHandler.groovy @@ -1,4 +1,19 @@ - +/* + * Copyright 2023-, Stellenbosch University, South Africa + * Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package nextflow.nomad.executor diff --git a/plugins/nf-nomad/src/test/nextflow/nomad/NomadDSLSpec.groovy b/plugins/nf-nomad/src/test/nextflow/nomad/NomadDSLSpec.groovy index 02410ca..72a83bc 100644 --- a/plugins/nf-nomad/src/test/nextflow/nomad/NomadDSLSpec.groovy +++ b/plugins/nf-nomad/src/test/nextflow/nomad/NomadDSLSpec.groovy @@ -1,4 +1,6 @@ /* + * Copyright 2023-, Stellenbosch University, South Africa + * Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain* * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.